first commit
This commit is contained in:
15
app_vue/node_modules/@vue/cli-service/lib/config/prod.js
generated
vendored
Normal file
15
app_vue/node_modules/@vue/cli-service/lib/config/prod.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
/** @type {import('@vue/cli-service').ServicePlugin} */
|
||||
module.exports = (api, options) => {
|
||||
api.chainWebpack(webpackConfig => {
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
webpackConfig
|
||||
.mode('production')
|
||||
.devtool(options.productionSourceMap ? 'source-map' : false)
|
||||
|
||||
// disable optimization during tests to speed things up
|
||||
if (process.env.VUE_CLI_TEST && !process.env.VUE_CLI_TEST_MINIMIZE) {
|
||||
webpackConfig.optimization.minimize(false)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user