mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 14:45:15 +00:00
e934da3c36
Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Clark Du <clark.duxin@gmail.com>
27 lines
740 B
JavaScript
27 lines
740 B
JavaScript
export default {
|
|
build: {
|
|
filenames: {
|
|
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
|
|
},
|
|
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
|
|
}
|
|
}
|
|
return false
|
|
})
|
|
}
|
|
}
|
|
}
|