mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
example: update custom-build
This commit is contained in:
parent
2c92fddbdc
commit
faa069df49
@ -9,9 +9,17 @@ export default {
|
|||||||
if (isDev) {
|
if (isDev) {
|
||||||
config.devtool = 'eval-source-map'
|
config.devtool = 'eval-source-map'
|
||||||
}
|
}
|
||||||
const urlLoader = config.module.rules.find((loader) => loader.loader === 'url-loader')
|
|
||||||
|
config.module.rules.some((loader) => {
|
||||||
|
if (loader.use) {
|
||||||
|
const urlLoader = loader.use.find(use => use.loader === 'url-loader')
|
||||||
|
if (urlLoader) {
|
||||||
// Increase limit to 100KO
|
// Increase limit to 100KO
|
||||||
urlLoader.query.limit = 100000
|
urlLoader.options.limit = 100000
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "example-custom-build",
|
"name": "example-custom-build",
|
||||||
"description": "",
|
"description": "",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
Loading…
Reference in New Issue
Block a user