Closed full-of-foo closed 8 years ago
I can show an example of extract-text-webpack-plugin
working. But that said I am definitely interested in how your use case is not working.
I can immediately see that you have only one loader specified in extract()
.
ExtractTextPlugin.extract([notExtractLoader], loader, [options])
Has this first option (notExtractLoader
) always been optional? Anyhow just now I omitted it in my example and everything still worked.
Do you have any other warnings in your failing build? It may be that resolve-url-loader
is warning that it cannot operate.
On second look I think that you should be using the style-loader
as your nonExtractLoader
only. If you never intend to disable the plugin then just remove it completely.
Event if this does not solve the error at hand I think it will be a problem for you following.
Hey @full-of-foo. How did you go with this?
@bholloway I opted to use npm packages over bower packages for my frontend deps which ultimately fixed my URL loading issues, so in the end I did not need resolve-url-loader
. Sorry this isn't much help
Ok @full-of-foo I'm going to close this for now. If anyone else encounters this I can reopen.
In some of my applications I am also using Bower and experience a lot of issues as a result. Definitely npm is the happy path so go with that where you can.
This plugin does not currently respect the Webpack
ExtractTextPlugin