Skip to content

Commit

Permalink
cssnano configurable via rollup-plugin-postcss
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdilley committed Jun 20, 2019
1 parent aad3991 commit 899e8a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
},
"devDependencies": {
"@fullhuman/postcss-purgecss": "^1.2.0",
"cssnano": "^4.1.10",
"eslint": "^5.3.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-prettier": "^4.3.0",
Expand Down
3 changes: 0 additions & 3 deletions postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ module.exports = {
'color-mod-function': true,
},
}),
require('cssnano')({
preset: 'default',
}),
...(process.env.NODE_ENV !== 'development' ? [purgecss] : []),
],
};
5 changes: 4 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ export default {
dev,
preprocess,
}),
postcss({ extract: path.resolve(__dirname, './static/index.css') }),
postcss({
minimize: true,
extract: path.resolve(__dirname, './static/index.css'),
}),
resolve(),
commonjs(),
],
Expand Down

0 comments on commit 899e8a8

Please sign in to comment.