mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
example: update custom-build
This commit is contained in:
parent
2c92fddbdc
commit
faa069df49
@ -9,9 +9,17 @@ export default {
|
||||
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
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
"name": "example-custom-build",
|
||||
"description": "",
|
||||
"dependencies": {
|
||||
"nuxt": "latest"
|
||||
"nuxt-edge": "latest"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "nuxt",
|
||||
|
Loading…
Reference in New Issue
Block a user