Skip to content
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

fix(index): update syntax to match latest rc3 #34

Merged
merged 1 commit into from
Feb 8, 2017

Conversation

pndewit
Copy link
Contributor

@pndewit pndewit commented Feb 7, 2017

Latest RC (RC3) of extract-text-webpack-plugin gives a warning when using the fallbackLoader and loader namings. Also updated the dependency to the latest RC.

See: https://github.com/webpack-contrib/extract-text-webpack-plugin/releases/tag/v2.0.0-rc.3

@@ -43,7 +43,7 @@ export = function css({ filename = '[name].css', allChunks = false, sourceMap =
rules: get(this, 'module.rules', []).concat([{
test,
use: extractCss ?
extractText.extract({ fallbackLoader: loaders[0], loader: loaders.slice(1) }) :
extractText.extract({ fallback: loaders[0], use: loaders.slice(1) }) :
Copy link
Contributor

@niieani niieani Feb 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, can use be an Array? The docs say it's "string / object", not sure what they mean by "object", perhaps it needs to be use: { loaders: [...] }? Could you find this out?

Thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@niieani Good eye, I checked out this: https://github.com/webpack-contrib/extract-text-webpack-plugin/blob/master/schema/loader-schema.js

Documentation must be outdated. I'll send them a PR as well. ;)

@niieani niieani merged commit 63f393e into easy-webpack:master Feb 8, 2017
@niieani
Copy link
Contributor

niieani commented Feb 8, 2017

I'm releasing this fix without testing (shame on me...), I honestly hope you have :)

@pndewit
Copy link
Contributor Author

pndewit commented Feb 8, 2017

Created a PR this morning for the docs update: webpack-contrib/extract-text-webpack-plugin#394

I tested this with my project, but that's just one of many use cases of course.

@pndewit
Copy link
Contributor Author

pndewit commented Feb 17, 2017

Just a quick update, the docs PR was approved and merged.

@niieani
Copy link
Contributor

niieani commented Feb 17, 2017

Awesome, thanks.

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

Successfully merging this pull request may close these issues.

2 participants