-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support resolve-url-loader, sass-loader?sourceMap #1124
Comments
+1 |
Just bumped into this as well as I was working on upgrading from 5.0.5. Source maps WERE working. |
I finally found a way to fix this. First of all. The problem why it was occurring was due to this line in the sassLoader
Here, the following object was always null.
Even if I passed the context in Webpack.common.config, it was still null. So finally, correct way of doing is, Add the following in the respective config files and not the webpack.common.config
|
@Abhijith-Nagaraja I'm having this issue, and even with the Here's mine: new LoaderOptionsPlugin({
debug: true,
options: {
context: helpers.root('src'),
outupt: {
path: helpers.root('dist'),
},
sassLoader: {
includePaths: [
helpers.root('node_modules'),
helpers.root('src'),
],
},
},
}), |
Damn typos, is ERROR in ./~/css-loader!./~/resolve-url-loader!./~/sass-loader!./src/theme/app.core.scss
Module not found: Error: Can't resolve './images/ui-icons-light.png' in '/Users/aplicaciones2/Documents/Luchillo-tech-showcase/src/theme'
@ ./~/css-loader!./~/resolve-url-loader!./~/sass-loader!./src/theme/app.core.scss 6:7400-7438 6:7724-7762 It seems i have misconfigured the |
Following worked for me..in webpack.dev.js I updated loader like following Then in same file, in LoaderOptionsPlugin I updated following |
[ ] bug report
[ V ] feature request
[ V ] question about the decisions made in the repository
feature(but in the view of resolve-url-loader & sass-loader, it's a Bug)
resolve-url-loader doesnt work in this version of this repo
also sass-loader doesnt work if use it with parameter 'sourceMap',
see below for more details
I will get the ERROR : Cannot read property 'path' of undefined at Object.resolveUrlLoader
?sourceMap
with sass-loader ...I will get the ERROR : path must be a string. Received undefined
it should be work ( like i use it in webpack 1 )
url()
,@Import
& nested resources are so frequently used in stylesheet, i think it will be great if support these functionality.The text was updated successfully, but these errors were encountered: