Skip to content

Commit

Permalink
fixes #529
Browse files Browse the repository at this point in the history
  • Loading branch information
p2227 committed Aug 29, 2017
1 parent a3f41e3 commit af85384
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ module.exports = (webpackConfig, env) => {
}
return item
})

webpackConfig.module.rules.map((item) => {
if (item.use && item.use.map){
item.use.map(iitem=>{
iitem.loader === 'css' && (iitem.options.minimize = true)
return iitem
})
}
return item
})
}

// PreLoaders
Expand Down

0 comments on commit af85384

Please sign in to comment.