mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(vue-loader): enable minimize for production builds
awaiting for vuejs/vue-loader#1208
This commit is contained in:
parent
4e2d40f2ce
commit
3859ad6e15
@ -117,7 +117,18 @@ export default class WebpackBaseConfig {
|
||||
{
|
||||
test: /\.vue$/,
|
||||
loader: 'vue-loader',
|
||||
options: _.cloneDeep(this.options.build.vue)
|
||||
options: Object.assign({
|
||||
minimize: !this.options.dev,
|
||||
template: {
|
||||
doctype: 'html' // For pug, see https://github.com/vuejs/vue-loader/issues/55
|
||||
},
|
||||
transformAssetUrls: {
|
||||
video: 'src',
|
||||
source: 'src',
|
||||
object: 'src',
|
||||
embed: 'src'
|
||||
}
|
||||
}, this.options.build.vueLoader)
|
||||
},
|
||||
{
|
||||
test: /\.jsx?$/,
|
||||
|
@ -63,17 +63,7 @@ export default {
|
||||
babel: {
|
||||
babelrc: false
|
||||
},
|
||||
vue: {
|
||||
template: {
|
||||
doctype: 'html' // For pug, see https://github.com/vuejs/vue-loader/issues/55
|
||||
},
|
||||
transformAssetUrls: {
|
||||
video: 'src',
|
||||
source: 'src',
|
||||
object: 'src',
|
||||
embed: 'src'
|
||||
}
|
||||
},
|
||||
vueLoader: {},
|
||||
postcss: {},
|
||||
templates: [],
|
||||
watch: [],
|
||||
|
Loading…
Reference in New Issue
Block a user