2016-11-09 01:35:13 +00:00
|
|
|
module.exports = {
|
|
|
|
build: {
|
|
|
|
filenames: {
|
2017-09-08 04:09:11 +00:00
|
|
|
css: 'styles.[chunkhash].css', // default: common.[chunkhash].css
|
|
|
|
manifest: 'manifest.[hash].js', // default: manifest.[hash].js
|
|
|
|
vendor: 'vendor.[hash].js', // default: vendor.bundle.[hash].js
|
|
|
|
app: 'app.[chunkhash].js' // default: nuxt.bundle.[chunkhash].js
|
2016-11-09 01:35:13 +00:00
|
|
|
},
|
|
|
|
vendor: ['lodash'],
|
2016-12-27 15:30:33 +00:00
|
|
|
extend (config, { dev }) {
|
|
|
|
if (dev) {
|
2017-09-08 04:09:11 +00:00
|
|
|
config.devtool = 'eval-source-map'
|
2016-12-27 15:30:33 +00:00
|
|
|
}
|
2017-06-11 19:12:51 +00:00
|
|
|
const urlLoader = config.module.rules.find((loader) => loader.loader === 'url-loader')
|
|
|
|
// Increase limit to 100KO
|
|
|
|
urlLoader.query.limit = 100000
|
2016-12-27 15:30:33 +00:00
|
|
|
}
|
2016-11-09 01:35:13 +00:00
|
|
|
}
|
|
|
|
}
|