So according to this question, css-loader
loads file as string, resolves webpack dependency according to require
, and style-loader
inserts style tag into page, and in many cases, css-loader
can be replaced by raw-loader
.
I'm currently using:
loader: ExtractTextPlugin.extract("raw-loader!postcss-loader!sass-loader?sourceMap&" + sassIncludePaths.join(""))
And there are require
s in the .scss
files, but I don't see a problem with raw-loader
yet. So question is:
- What exactly is the difference between the two?
- What might be a problem if I were to replace
css-loader
withraw-loader
in order to reduce run time?