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 435B

1234567891011121314151617181920
  1. const path = require('path');
  2. const frontendConf = {
  3. mode: 'production',
  4. target: "web",
  5. entry: path.resolve(__dirname, '..', 'js', 'src', 'Frontend.js'),
  6. output: {
  7. path: path.resolve(__dirname, '..', 'js', 'src'),
  8. filename: "Frontend.js",
  9. libraryTarget: 'commonjs',
  10. },
  11. resolve: {
  12. extensions: [".ts", ".tsx", ".js"]
  13. },
  14. optimization: {
  15. minimize: false,
  16. },
  17. }
  18. module.exports = [frontendConf]