Justin McKenzie
Jul 28, 2017 · 1 min read

Hi, great article. I am running into some problems splitting my queries on loaders to go along with webpack2. I have included a couple of them below, any suggestions as to how I would go about this? Thanks!

{
test: /\.css$/,
loader: 'style-loader' +
'!css-loader' +
'!autoprefixer-loader?{browsers:["last 2 version"]}',
},
{
test: /\.less$/,
loader: 'style-loader' +
`!css-loader?localIdentName=${componentName}` +
'!autoprefixer-loader?{browsers:["last 2 version"]}' +
'!less-loader?strictMath&noIeCompat',
},