Minimize CSS in production builds (all templates)

This commit is contained in:
Erick Galassi
2017-04-07 18:17:10 -03:00
committed by Steve Sanderson
parent c0205cfc4e
commit ea429cccf4
14 changed files with 16 additions and 16 deletions

View File

@@ -18,7 +18,7 @@ module.exports = (env) => {
rules: [
{ test: /\.ts$/, include: /ClientApp/, use: ['awesome-typescript-loader?silent=true', 'angular2-template-loader'] },
{ test: /\.html$/, use: 'html-loader?minimize=false' },
{ test: /\.css$/, use: ['to-string-loader', 'css-loader'] },
{ test: /\.css$/, use: [ 'to-string-loader', isDevBuild ? 'css-loader' : 'css-loader?minimize' ] },
{ test: /\.(png|jpg|jpeg|gif|svg)$/, use: 'url-loader?limit=25000' }
]
},