Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/ArcGIS/arcgis-js-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
odoe committed Apr 17, 2020
2 parents 3fd632e + d39acc4 commit 94ca184
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions templates/react/app/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ module.exports = function(_, arg) {
},
optimization: {
minimizer: [
new TerserPlugin({
cache: true,
parallel: true,
sourceMap: false,
}),
new OptimizeCSSAssetsPlugin({
cssProcessorOptions: {
discardComments: {
Expand Down Expand Up @@ -175,10 +170,17 @@ module.exports = function(_, arg) {
};

if (arg.mode === 'development') {
config.devtool = 'source-map';
config.devtool = 'eval-source-map';
}

if (arg.mode === 'production') {
config.optimization.minimizer.push(
new TerserPlugin({
cache: true,
parallel: true,
sourceMap: false,
}),
);
config.plugins.push(
new WorkboxPlugin.GenerateSW({
clientsClaim: true,
Expand Down

0 comments on commit 94ca184

Please sign in to comment.