You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2019. It is now read-only.
exports.extractCSS=function(paths){return{module: {rules: [// Extract CSS during build{test: /\.css$/,loader: ExtractTextPlugin.extract({fallbackLoader: 'style-loader',loader: 'css-loader'}),include: paths}]},plugins: [// Output extracted CSS to a filenewExtractTextPlugin('[name].[chunkhash].css')]};}
If it's upgraded to use like this it fails:
exports.extractCSS=function(paths){return{module: {rules: [// Extract CSS during build{test: /\.css$/,use: ExtractTextPlugin.extract({fallbackLoader: 'style-loader',loader: 'css-loader'}),include: paths}]},plugins: [// Output extracted CSS to a filenewExtractTextPlugin('[name].[chunkhash].css')]};}
I also tried wrapping ExtractTextPlugin.extract to an array with the same result. Given loader is getting deprecated, ExtractTextPlugin should probably work with use. Interestingly the README suggests using loader instead.
The text was updated successfully, but these errors were encountered:
The following snippet works:
If it's upgraded to
use
like this it fails:I also tried wrapping
ExtractTextPlugin.extract
to an array with the same result. Givenloader
is getting deprecated,ExtractTextPlugin
should probably work withuse
. Interestingly the README suggests usingloader
instead.The text was updated successfully, but these errors were encountered: