Created
June 8, 2018 23:56
-
-
Save ssougnez/7c9efc25c0d38fbc8d0da03e71b32f74 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"); | |
module.exports = { | |
... | |
module: { | |
rules: [ | |
... | |
{ | |
test: /\.css$/, | |
use: [MiniCssExtractPlugin.loader, "css-loader"] | |
} | |
] | |
}, | |
plugins: [ | |
... | |
new MiniCssExtractPlugin({ | |
filename: "css/[name].[chunkhash].css" | |
}) | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment