Skip to content

Commit

Permalink
feat(Enable CSS minification for the build): Now elm-app build will…
Browse files Browse the repository at this point in the history
… produce minified CSS output
  • Loading branch information
Eduard Kyvenko committed Apr 13, 2017
1 parent 17575c9 commit ad3596c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,17 @@ module.exports = {
pathToMake: paths.elmMake
}
},

{
test: /\.css$/,
use: ExtractTextPlugin.extract({
fallbackLoader: 'style-loader',
loader: [
fallback: 'style-loader',
use: [
{
loader: 'css-loader'
loader: 'css-loader',
options: {
minimize: true
}
},
{
loader: 'postcss-loader',
Expand Down

0 comments on commit ad3596c

Please sign in to comment.