|
|
@ -18,7 +18,6 @@ module.exports = { |
|
|
|
optimization: { |
|
|
|
optimization: { |
|
|
|
minimizer: [ |
|
|
|
minimizer: [ |
|
|
|
new TerserPlugin({ |
|
|
|
new TerserPlugin({ |
|
|
|
cache: true, |
|
|
|
|
|
|
|
parallel: true, |
|
|
|
parallel: true, |
|
|
|
}) |
|
|
|
}) |
|
|
|
] |
|
|
|
] |
|
|
@ -27,5 +26,11 @@ module.exports = { |
|
|
|
output: { |
|
|
|
output: { |
|
|
|
path: path.resolve(__dirname, '../test_tmp'), |
|
|
|
path: path.resolve(__dirname, '../test_tmp'), |
|
|
|
filename: 'webpack.bundle.js' |
|
|
|
filename: 'webpack.bundle.js' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
resolve: { |
|
|
|
|
|
|
|
fallback: { |
|
|
|
|
|
|
|
'crypto': require.resolve('crypto-browserify'), |
|
|
|
|
|
|
|
'stream': require.resolve('stream-browserify') |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|