Nuxt/examples/custom-build/nuxt.config.js
renovate[bot] e934da3c36
chore(deps): update devdependency @nuxtjs/eslint-config to v5 (#8345)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Clark Du <clark.duxin@gmail.com>
2020-11-14 17:10:53 +00:00

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
})
}
}
}