Skip to content
This repository has been archived by the owner on Jul 21, 2022. It is now read-only.

Commit

Permalink
feat(build): added postcss-discard-comments
Browse files Browse the repository at this point in the history
  • Loading branch information
grizzm0 authored and Brocco committed Oct 19, 2016
1 parent 544652a commit 532f8e7
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 532f8e7

Please sign in to comment.