I picked up an example webpack config file that has the following loader.
test: /\.scss|.css$/,
loader: ExtractTextPlugin.extract('style', 'css?sourceMap!postcss')
It seems to be working but what I can't understand is that many places it states that you must use a sass-loader but I don't have it installed, and it's not listed inside my packages file.
From what I can see, it's loading the style-loader and then the css loader.
What is happening here? I see no reference to sass /scss only on the test line (above). Also I notice that it is using the extract function off of the ExtractTextPlugin, what is the difference to just using
loader: ['style', 'css?sourceMap!postcss']
Edit
These are the postcss plugins I am using.
require('postcss-import')({addDependencyTo: bundler}),
require('postcss-inline-comment')(),
require('postcss-hexrgba'),
require('postcss-size'),
require('precss')(),
require('css-mqpacker')(),
require('autoprefixer')({
browsers: ['last 2 version']
})