🎉 First commit, from couchbase generator, basic changes
not tested / updated yet
This commit is contained in:
35
{{cookiecutter.project_slug}}/frontend/vue.config.js
Normal file
35
{{cookiecutter.project_slug}}/frontend/vue.config.js
Normal file
@@ -0,0 +1,35 @@
|
||||
module.exports = {
|
||||
// Fix Vuex-typescript in prod: https://github.com/istrib/vuex-typescript/issues/13#issuecomment-409869231
|
||||
configureWebpack: (config) => {
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
config.optimization.minimizer[0].options.terserOptions = Object.assign(
|
||||
{},
|
||||
config.optimization.minimizer[0].options.terserOptions,
|
||||
{
|
||||
ecma: 5,
|
||||
compress: {
|
||||
keep_fnames: true,
|
||||
},
|
||||
warnings: false,
|
||||
mangle: {
|
||||
keep_fnames: true,
|
||||
},
|
||||
},
|
||||
);
|
||||
}
|
||||
},
|
||||
chainWebpack: config => {
|
||||
config.module
|
||||
.rule('vue')
|
||||
.use('vue-loader')
|
||||
.loader('vue-loader')
|
||||
.tap(options => Object.assign(options, {
|
||||
transformAssetUrls: {
|
||||
'v-img': ['src', 'lazy-src'],
|
||||
'v-card': 'src',
|
||||
'v-card-media': 'src',
|
||||
'v-responsive': 'src',
|
||||
}
|
||||
}));
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user