Skip to content

Commit

Permalink
feat(build): added postcss-discard-comments
Browse files Browse the repository at this point in the history
Close #2593
  • Loading branch information
grizzm0 authored and Brocco committed Oct 19, 2016
1 parent 70a88e1 commit bd1ed39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"offline-plugin": "^3.4.1",
"opn": "4.0.1",
"parse5": "^2.1.5",
"postcss-discard-comments": "^2.0.4",
"postcss-loader": "^0.9.1",
"protractor": "^3.3.0",
"raw-loader": "^0.5.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/angular-cli/models/webpack-build-production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export const getWebpackProdConfigPartial = function(projectRoot: string, appConf
[/\[?\(?/, /(?:)/]
],
customAttrAssign: [/\)?\]?=/]
}
},
postcss: [
require('postcss-discard-comments')
]
}
})
],
Expand Down

0 comments on commit bd1ed39

Please sign in to comment.