Skip to content

Commit

Permalink
add postcss-calc to postcss plugin chain, to fix css calc() errors
Browse files Browse the repository at this point in the history
  • Loading branch information
that1matt committed Oct 19, 2018
1 parent c467990 commit cdb7a12
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions gulpfile.js
Expand Up @@ -52,6 +52,7 @@ function css(cb) {
'color-mod-function': true, // required to use color-mod()
}
}),
require('postcss-calc'), // required as postcss-preset-env doesn't have a reduce calc() funtion
require('postcss-normalize'),
require('postcss-reporter')({
clearReportedMessages: true
Expand Down
66 changes: 66 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -74,6 +74,7 @@
"lint-staged": "^3.4.2",
"mini-css-extract-plugin": "^0.4.4",
"postcss-apply": "^0.11.0",
"postcss-calc": "^7.0.0",
"postcss-each": "^0.10.0",
"postcss-import": "^12.0.0",
"postcss-loader": "^3.0.0",
Expand Down
1 change: 1 addition & 0 deletions webpack/postcss.config.js
Expand Up @@ -18,6 +18,7 @@ module.exports = () => ({
'color-mod-function': true, // required to use color-mod()
}
}),
require('postcss-calc'), // required as postcss-preset-env doesn't have a reduce calc() funtion
require('postcss-normalize'),
require('postcss-reporter')({
clearReportedMessages: true
Expand Down

0 comments on commit cdb7a12

Please sign in to comment.