Created
April 25, 2018 10:53
-
-
Save stecb/fe3c410dd5393febee9c5feb7b1cbecf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MiniCssExtractPlugin = require("mini-css-extract-plugin"); | |
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin"); | |
module.exports = { | |
optimization: { | |
minimizer: [ | |
new OptimizeCSSAssetsPlugin({}) | |
] | |
}, | |
plugins: [ | |
new MiniCssExtractPlugin({ | |
filename: "[name].css" | |
}) | |
], | |
module: { | |
rules: [ | |
{ | |
test: /\.s?[ac]ss$/, | |
use: [ | |
MiniCssExtractPlugin.loader, | |
'css-loader', | |
'postcss-loader', | |
'sass-loader', | |
], | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment