Created
May 31, 2018 06:27
-
-
Save jsartisan/b05609664d68e25cc7a6215e6f163d0d to your computer and use it in GitHub Desktop.
Inline and Minify CSS
This file contains hidden or 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 ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const StyleExtHtmlWebpackPlugin = require('style-ext-html-webpack-plugin'); | |
// ... | |
const config = { | |
// ... | |
plugins: [ | |
new StyleExtHtmlWebpackPlugin({ | |
minify: isDevelopment === false, | |
}), | |
new ExtractTextPlugin('[name].css'), | |
// ... | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment