Skip to content

Commit

Permalink
Disables comments on css production minification
Browse files Browse the repository at this point in the history
  • Loading branch information
rista404 committed Aug 31, 2016
1 parent e4d3549 commit 6b8716e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 7 additions & 2 deletions config/postcss.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
"use": [
"postcss-import",
"postcss-nesting",
"postcss-cssnext",
"cssnano"
"cssnano",
"postcss-cssnext"
],
"input": "src/css/main.css",
"output": "dist/bundle.min.css",
"local-plugins": true,
"cssnext": {
"browsers": "> 5%"
},
"cssnano": {
"discardComments": {
"removeAll": true
}
}
}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"version": "1.0.0",
"description": "Future-proof project kickstart - ES6, CSSNext",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/rista404/next-project-kickstart"
},
"scripts": {
"copy-files": "rsync -arv --exclude=css --exclude=js src/ dist/ ",
"start": "npm-run-all --parallel start:*",
Expand All @@ -21,7 +25,7 @@
"npm",
"scripts"
],
"author": "Nikola Ristic @rista404 <risticnikola@outlook.com>",
"author": "Nikola Ristic <risticnikola@outlook.com>",
"license": "ISC",
"devDependencies": {
"babel-plugin-transform-object-rest-spread": "^6.8.0",
Expand Down

0 comments on commit 6b8716e

Please sign in to comment.