-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
[v2.1.1] breaks resolve-url-loader
#340
Comments
Manually readding |
Have same issue with resolve-url-loader. { source: 'D:/Projects/test/node_modules/video.js/dist/D:/Projects/test/node_modules/video.js/dist/video-js.css',
line: 17,
column: 2,
name: null } with version 2.1.0: { source: 'D:/Projects/test/node_modules/video.js/dist/video-js.css',
line: 17,
column: 2,
name: null } |
Move |
Also |
Yeah, I know :). But it does not change that |
After changing the order (moving I understand the fact that many webpack loaders are buggy, but for now I haven't been able to resolve resolve importing/requiring a Stylus file inside a Stylus file - without using |
@jussikinnula we can just rewrite |
@evilebottnawi, that would be superb. It would simplify our life of bundling a lot of reusable React components in component libraries :-) |
There is already pending pull request to use postcss in resolve-url-loader |
but resolve-url-loader as postcss plugin would be just great |
resolve-url-loader
functionality
resolve-url-loader
functionalityresolve-url-loader
Sry, I didn't think of
The change should not have landed this way (as a |
It seems like the source-map outgoing from See analysis here. Please let me know your thoughts. |
@michael-ciniawsky Coming here since I had this issue and debugged this with the help of @bholloway's analysis (see above). I could only fix it with #340 (comment). However, it took a while to come here, so this can't be a solution for the mass. I'd highly appreciate if you and @bholloway could please coordinate a solution. The points you've written may be right, but they don't offer a solution to the problem. To me it feels like: "not my problem, I don't care". |
There could be a couple of issues going on here. But for Windows I am suggesting there is probably a large problem. After some digging it looks like I note that (P.S. I use |
When upgrading to 2.1.1 version of postcss-loader, file-loader and url-loader functionality is broken (e.g. using require() in JavaScript files or url() in CSS files).
The error message:
The problem seems to be that stylus-loader the path wrong. It should be
/Users/xxx/dev/app/App
(not/Users/xxx/dev/app/App/app/App
).On this case the index.styl contains:
On Webpack configuration, context is set like:
Downgrading to postcss-loader 2.1.0 gets everything working again.
The text was updated successfully, but these errors were encountered: