Skip to content

Commit edbd7c5

Browse files
author
Ives van Hoorne
committed
Devbuild
1 parent a9bca64 commit edbd7c5

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

packages/app/config/webpack.prod.js

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -30,46 +30,46 @@ module.exports = merge(commonConfig, {
3030
chunkFilename: 'static/js/[name].[chunkhash:8].chunk.js',
3131
sourceMapFilename: '[file].map', // Default
3232
},
33-
mode: 'production',
33+
mode: 'development',
3434
stats: 'verbose',
3535

36-
optimization: {
37-
minimizer: [
38-
new UglifyJSPlugin({
39-
cache: true,
40-
parallel: true,
41-
sourceMap: false,
42-
uglifyOptions: {
43-
mangle: {
44-
safari10: true,
45-
},
46-
output: {
47-
comments: false,
48-
},
49-
},
50-
}),
51-
],
52-
concatenateModules: true, // ModuleConcatenationPlugin
53-
namedModules: true, // NamedModulesPlugin()
54-
noEmitOnErrors: true, // NoEmitOnErrorsPlugin
36+
// optimization: {
37+
// minimizer: [
38+
// new UglifyJSPlugin({
39+
// cache: true,
40+
// parallel: true,
41+
// sourceMap: false,
42+
// uglifyOptions: {
43+
// mangle: {
44+
// safari10: true,
45+
// },
46+
// output: {
47+
// comments: false,
48+
// },
49+
// },
50+
// }),
51+
// ],
52+
// concatenateModules: true, // ModuleConcatenationPlugin
53+
// namedModules: true, // NamedModulesPlugin()
54+
// noEmitOnErrors: true, // NoEmitOnErrorsPlugin
5555

56-
splitChunks: {
57-
chunks: 'all',
58-
name(module, chunks, cacheGroup) {
59-
const name = normalize(module, chunks, cacheGroup);
56+
// splitChunks: {
57+
// chunks: 'all',
58+
// name(module, chunks, cacheGroup) {
59+
// const name = normalize(module, chunks, cacheGroup);
6060

61-
if (name === 'vendors~app~embed~sandbox') {
62-
return 'common-sandbox';
63-
}
61+
// if (name === 'vendors~app~embed~sandbox') {
62+
// return 'common-sandbox';
63+
// }
6464

65-
if (name === 'vendors~app~embed') {
66-
return 'common';
67-
}
68-
// generate a chunk name using default strategy...
69-
return name;
70-
},
71-
},
72-
},
65+
// if (name === 'vendors~app~embed') {
66+
// return 'common';
67+
// }
68+
// // generate a chunk name using default strategy...
69+
// return name;
70+
// },
71+
// },
72+
// },
7373

7474
plugins: [
7575
process.env.ANALYZE && new BundleAnalyzerPlugin(),

0 commit comments

Comments
 (0)