Skip to content

Commit

Permalink
add @csstools/postcss-relative-color-syntax plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnC-80 committed Nov 30, 2023
1 parent 6a08438 commit 6bbb6a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@babel/preset-typescript": "^7.7.7",
"@babel/register": "^7.0.0",
"@cerner/duplicate-package-checker-webpack-plugin": "~2.1.0",
"@csstools/postcss-relative-color-syntax": "^2.0.7",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
"@svgr/webpack": "^8.1.0",
"add-asset-html-webpack-plugin": "^5.0.2",
Expand Down
3 changes: 2 additions & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const postCssNesting = require('postcss-nesting');
const postCssCustomMedia = require('postcss-custom-media');
const postCssMediaMinMax = require('postcss-media-minmax');
const postCssColorFunction = require('postcss-color-function');

const postCssRelativeColorSyntax = require('@csstools/postcss-relative-color-syntax');
const { generateStripesAlias, tryResolve } = require('./webpack/module-paths');

const locateCssVariables = () => {
Expand All @@ -34,6 +34,7 @@ module.exports = {
postCssNesting(),
postCssCustomMedia(),
postCssMediaMinMax(),
postCssRelativeColorSyntax(),
postCssColorFunction(),
],
};

0 comments on commit 6bbb6a7

Please sign in to comment.