|
|
@ -40,8 +40,6 @@ module.exports = composePlugins(withNx(), withReact(), (config) => { |
|
|
|
// add public path
|
|
|
|
// add public path
|
|
|
|
config.output.publicPath = '/' |
|
|
|
config.output.publicPath = '/' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// add copy & provide plugin
|
|
|
|
// add copy & provide plugin
|
|
|
|
config.plugins.push( |
|
|
|
config.plugins.push( |
|
|
|
new webpack.ProvidePlugin({ |
|
|
|
new webpack.ProvidePlugin({ |
|
|
@ -63,7 +61,6 @@ module.exports = composePlugins(withNx(), withReact(), (config) => { |
|
|
|
|
|
|
|
|
|
|
|
config.ignoreWarnings = [/Failed to parse source map/] // ignore source-map-loader warnings
|
|
|
|
config.ignoreWarnings = [/Failed to parse source map/] // ignore source-map-loader warnings
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// set minimizer
|
|
|
|
// set minimizer
|
|
|
|
config.optimization.minimizer = [ |
|
|
|
config.optimization.minimizer = [ |
|
|
|
new TerserPlugin({ |
|
|
|
new TerserPlugin({ |
|
|
@ -82,4 +79,4 @@ module.exports = composePlugins(withNx(), withReact(), (config) => { |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
return config; |
|
|
|
return config; |
|
|
|
}); |
|
|
|
}) |
|
|
|