Skip to content

Commit

Permalink
feat: add build._minifyServer option
Browse files Browse the repository at this point in the history
  • Loading branch information
pooya parsa committed Jun 5, 2020
1 parent 90b09ce commit daa9bcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/webpack/src/config/server.js
Expand Up @@ -39,9 +39,11 @@ export default class WebpackServerConfig extends WebpackBaseConfig {
}

optimization () {
const { _minifyServer } = this.buildContext.buildOptions

return {
splitChunks: false,
minimizer: []
minimizer: _minifyServer ? this.minimizer() : []
}
}

Expand Down

0 comments on commit daa9bcc

Please sign in to comment.