您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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]