Nuxt/examples/custom-build/nuxt.config.js

18 lines
541 B
JavaScript
Raw Normal View History

2018-03-16 16:12:06 +00:00
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
},
2017-10-31 13:43:55 +00:00
extend(config, { isDev }) {
if (isDev) {
config.devtool = 'eval-source-map'
2016-12-27 15:30:33 +00:00
}
2017-06-11 19:12:51 +00:00
const urlLoader = config.module.rules.find((loader) => loader.loader === 'url-loader')
// Increase limit to 100KO
urlLoader.query.limit = 100000
2016-12-27 15:30:33 +00:00
}
}
}