mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
remove resolve-url-loader
Depending on sourcemaps makes many inconsistencies for builds! Same behaviour is supported by vue-loader
This commit is contained in:
parent
086a642332
commit
8d489349c0
@ -8,7 +8,7 @@ export default function styleLoader (ext, loaders = [], isVueLoader = false) {
|
||||
return {
|
||||
loader,
|
||||
options: {
|
||||
sourceMap: true // Source map is REQUIRED for urlLoader
|
||||
sourceMap: this.options.build.cssSourceMap
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -52,18 +52,12 @@ export default function styleLoader (ext, loaders = [], isVueLoader = false) {
|
||||
}
|
||||
}
|
||||
|
||||
// https://github.com/bholloway/resolve-url-loader
|
||||
const urlLoader = {
|
||||
loader: 'resolve-url-loader'
|
||||
}
|
||||
|
||||
if (this.options.build.extractCSS && !this.options.dev) {
|
||||
return ExtractTextPlugin.extract({
|
||||
fallback: vueStyleLoader,
|
||||
use: [
|
||||
cssLoader,
|
||||
postcssLoader,
|
||||
urlLoader,
|
||||
...loaders
|
||||
].filter(l => l)
|
||||
})
|
||||
@ -73,7 +67,6 @@ export default function styleLoader (ext, loaders = [], isVueLoader = false) {
|
||||
vueStyleLoader,
|
||||
cssLoader,
|
||||
postcssLoader,
|
||||
urlLoader,
|
||||
...loaders
|
||||
].filter(l => l)
|
||||
}
|
||||
|
@ -105,7 +105,6 @@
|
||||
"postcss-url": "^7.1.2",
|
||||
"pretty-error": "^2.1.1",
|
||||
"progress-bar-webpack-plugin": "^1.10.0",
|
||||
"resolve-url-loader": "^2.1.0",
|
||||
"serialize-javascript": "^1.4.0",
|
||||
"serve-static": "^1.12.4",
|
||||
"server-destroy": "^1.0.1",
|
||||
|
Loading…
Reference in New Issue
Block a user