experimental postcss

This commit is contained in:
Matthew Hodgson 2017-01-10 11:06:09 +00:00
parent 35b3013386
commit 691fe611d6
7 changed files with 94 additions and 153 deletions

View file

@ -24,8 +24,8 @@ module.exports = {
{ test: /\.json$/, loader: "json" },
{ test: /\.js$/, loader: "babel", include: path.resolve('./src') },
// css-raw-loader loads CSS but doesn't try to treat url()s as require()s
{ test: /\.css$/, loader: ExtractTextPlugin.extract("css-raw-loader") },
{ test: /\.scss$/, loaders: ["style-loader", "css-loader?sourceMap", "sass-loader?sourceMap"] },
// we're assuming that postcss has already preprocessed SCSS by this point
{ test: /\.s?css$/, loader: ExtractTextPlugin.extract("css-raw-loader") },
],
noParse: [
// don't parse the languages within highlight.js. They cause stack