Skip to content

Commit 883fe46

Browse files
grizzm0filipesilva
authored andcommitted
feat(build): added postcss-discard-comments
Close angular#2593
1 parent e17d4a8 commit 883fe46

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
"offline-plugin": "^3.4.1",
8585
"opn": "4.0.1",
8686
"parse5": "^2.1.5",
87+
"postcss-discard-comments": "^2.0.4",
8788
"postcss-loader": "^0.9.1",
8889
"protractor": "^3.3.0",
8990
"raw-loader": "^0.5.1",

packages/angular-cli/models/webpack-build-production.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ export const getWebpackProdConfigPartial = function(projectRoot: string, appConf
4343
[/\[?\(?/, /(?:)/]
4444
],
4545
customAttrAssign: [/\)?\]?=/]
46-
}
46+
},
47+
postcss: [
48+
require('postcss-discard-comments')
49+
]
4750
}
4851
})
4952
],

0 commit comments

Comments
 (0)