diff --git a/examples/custom-build/nuxt.config.js b/examples/custom-build/nuxt.config.js index aab9dcac78..00d5827caa 100644 --- a/examples/custom-build/nuxt.config.js +++ b/examples/custom-build/nuxt.config.js @@ -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 + } + } + }) } } } diff --git a/examples/custom-build/package.json b/examples/custom-build/package.json index 262147d6fe..80ced97849 100644 --- a/examples/custom-build/package.json +++ b/examples/custom-build/package.json @@ -2,7 +2,7 @@ "name": "example-custom-build", "description": "", "dependencies": { - "nuxt": "latest" + "nuxt-edge": "latest" }, "scripts": { "dev": "nuxt",