mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
e7cc2757c3
Co-authored-by: Alexander Lichter <manniL@gmx.net>
26 lines
697 B
JavaScript
26 lines
697 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'
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|