mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-12 07:17:13 +00:00
1e0c807341
Signed-off-by: Clark Du <clark.duxin@gmail.com>
20 lines
634 B
JavaScript
20 lines
634 B
JavaScript
module.exports = {
|
|
build: {
|
|
filenames: {
|
|
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
|
|
},
|
|
vendor: ['lodash'],
|
|
extend (config, { dev }) {
|
|
if (dev) {
|
|
config.devtool = 'eval-source-map'
|
|
}
|
|
const urlLoader = config.module.rules.find((loader) => loader.loader === 'url-loader')
|
|
// Increase limit to 100KO
|
|
urlLoader.query.limit = 100000
|
|
}
|
|
}
|
|
}
|