Skip to content

Loader can't use importedLoaders to load url in webpack 2.2. #411

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

Closed
artemkaint opened this issue Jan 26, 2017 · 4 comments
Closed

Loader can't use importedLoaders to load url in webpack 2.2. #411

artemkaint opened this issue Jan 26, 2017 · 4 comments

Comments

@artemkaint
Copy link

I've set importLoaders to use postcss at url. It works with webpack < 2.1 but now it use options param, but getImportPrefix function does not understand this param and use only query (request) property (https://github.com/webpack-contrib/css-loader/blob/master/lib/getImportPrefix.js#L12).

Query property doesn't include some options of the imported loader

@michael-ciniawsky
Copy link
Member

michael-ciniawsky commented Mar 7, 2017

@artemkaint Do you also have a fix in mind ?

@jquense
Copy link
Contributor

jquense commented Mar 10, 2017

this is a frustrating one :/ Shouldn't it use ident and a string placeholder like is down elsewhere for stringifying loader requests?

@michael-ciniawsky
Copy link
Member

@jquense Not sure tbh I need to look at it first, but if you think you have some a (rough) solution please send PR 😛

@alexander-akait
Copy link
Member

Use ident. Some webpack version was affected this bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants