daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Jan 16th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top