Re-allow minification. Remove source maps from prod build.
This commit is contained in:
parent
4f6f946245
commit
20346a784e
@ -8,7 +8,7 @@ const { VueLoaderPlugin } = require('vue-loader');
|
|||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
mode: process.env.NODE_ENV,
|
mode: process.env.NODE_ENV,
|
||||||
devtool: "inline-source-map",
|
devtool: `${process.env.CHANNEL === 'stable' ? undefined : "inline-source-map"}`,
|
||||||
context: __dirname + '/src',
|
context: __dirname + '/src',
|
||||||
entry: {
|
entry: {
|
||||||
'ext/uw': './ext/uw.js',
|
'ext/uw': './ext/uw.js',
|
||||||
@ -145,7 +145,12 @@ const config = {
|
|||||||
})
|
})
|
||||||
],
|
],
|
||||||
optimization: {
|
optimization: {
|
||||||
minimize: false,
|
// minimize: false,
|
||||||
|
// occurrenceOrder: false,
|
||||||
|
// providedExports: false,
|
||||||
|
// usedExports: false,
|
||||||
|
// concatenateModules: false,
|
||||||
|
// sideEffects: false,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user