mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-05 21:53:56 +00:00
18 lines
541 B
JavaScript
18 lines
541 B
JavaScript
export default {
|
|
build: {
|
|
filenames: {
|
|
css: 'styles.[chunkhash].css', // default: common.[chunkhash].css
|
|
manifest: 'manifest.[hash].js', // default: manifest.[hash].js
|
|
app: 'app.[chunkhash].js' // default: nuxt.bundle.[chunkhash].js
|
|
},
|
|
extend(config, { isDev }) {
|
|
if (isDev) {
|
|
config.devtool = 'eval-source-map'
|
|
}
|
|
const urlLoader = config.module.rules.find((loader) => loader.loader === 'url-loader')
|
|
// Increase limit to 100KO
|
|
urlLoader.query.limit = 100000
|
|
}
|
|
}
|
|
}
|