You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

webpack.js 483B

12345678910111213141516171819202122232425
  1. const path = require('path');
  2. module.exports = {
  3. mode: 'production',
  4. target: "web",
  5. entry: path.resolve(__dirname, 'Frontend.ts'),
  6. output: {
  7. path: path.resolve(__dirname, '..', 'js', 'browser'),
  8. filename: "rpclibrary.browser.js",
  9. libraryTarget: 'window'
  10. },
  11. resolve: {
  12. extensions: [".ts", ".tsx", ".js"]
  13. },
  14. module: {
  15. rules: [
  16. { test: /\.ts?$/, loader: "ts-loader" }
  17. ]
  18. },
  19. optimization: {
  20. minimize: false,
  21. },
  22. externals: {
  23. }
  24. }