2018-03-16 16:12:06 +00:00
|
|
|
export default {
|
2016-11-09 01:35:13 +00:00
|
|
|
build: {
|
|
|
|
filenames: {
|
2019-10-29 18:06:14 +00:00
|
|
|
css: 'styles.[contenthash].css', // default: common.[contenthash].css
|
|
|
|
manifest: 'manifest.[contenthash].js', // default: manifest.[contenthash].js
|
|
|
|
app: 'app.[contenthash].js' // default: nuxt.bundle.[contenthash].js
|
2016-11-09 01:35:13 +00:00
|
|
|
},
|
2019-07-10 10:45:49 +00:00
|
|
|
extend (config, { isDev }) {
|
2017-10-28 15:20:11 +00:00
|
|
|
if (isDev) {
|
2017-09-08 04:09:11 +00:00
|
|
|
config.devtool = 'eval-source-map'
|
2016-12-27 15:30:33 +00:00
|
|
|
}
|
2018-07-18 16:16:01 +00:00
|
|
|
|
|
|
|
config.module.rules.some((loader) => {
|
|
|
|
if (loader.use) {
|
|
|
|
const urlLoader = loader.use.find(use => use.loader === 'url-loader')
|
|
|
|
if (urlLoader) {
|
|
|
|
// Increase limit to 100KO
|
|
|
|
urlLoader.options.limit = 100000
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
2016-12-27 15:30:33 +00:00
|
|
|
}
|
2016-11-09 01:35:13 +00:00
|
|
|
}
|
|
|
|
}
|