Guest User

Untitled

a guest
Jan 16th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. module.exports = {
  2. mode: 'production',
  3. entry: {
  4. index: [
  5. 'babel-polyfill',
  6. './src/index.js',
  7. ],
  8. },
  9. output: {
  10. path: srcBuild,
  11. filename: '[name].js',
  12. chunkFilename: '[name].[chunkhash].js',
  13. libraryTarget: 'commonjs',
  14. libraryExport: 'default',
  15. },
  16. optimization: {
  17. noEmitOnErrors: true,
  18. minimizer: [
  19. new TerserPlugin({
  20. cache: true,
  21. parallel: true,
  22. sourceMap: true,
  23. terserOptions: {
  24. mangle: false,
  25. compress: {
  26. reduce_funcs: false,
  27. reduce_vars: false,
  28. keep_classnames: true,
  29. keep_fnames: true,
  30. keep_fargs: true,
  31. pure_getters: true,
  32. },
  33. },
  34. }),
  35. ],
  36. }
Add Comment
Please, Sign In to add comment