Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Possibly a bug using options vs query. #281

Closed
amir20 opened this issue Nov 7, 2016 · 2 comments
Closed

Possibly a bug using options vs query. #281

amir20 opened this issue Nov 7, 2016 · 2 comments

Comments

@amir20
Copy link

amir20 commented Nov 7, 2016

Documentation suggests to use options to configure loaders but I had to use query.

ExtractTextPlugin.extract({
                fallbackLoader: 'style-loader',
                loader: [
                     {
                         loader: 'css-loader',
                         query: { importLoaders: 1}, // <--- should this be options? 
                     },
                     {
                         loader: 'postcss-loader',
                     }
                 ]
            })

This could be a bug. I couldn't figure out how to get css-loader configured with importLoaders otherwise.

@flying-sheep
Copy link

definitely true.

this still only supports webpack 1 style query, not options

@bebraw
Copy link
Contributor

bebraw commented Jan 28, 2017

The plugin has been updated to use options. Instead of loader you should go with use now.

@bebraw bebraw closed this as completed Jan 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants