Skip to content

Commit

Permalink
Merge pull request #2459 from anuradha9712/v4.x
Browse files Browse the repository at this point in the history
chore: add autoprefixer and color-mod plugin in umd and esm build
  • Loading branch information
anuradha9712 authored Dec 17, 2024
2 parents 8ca0e16 + 557c637 commit 0e80041
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 126 deletions.
9 changes: 8 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
const path = require('path');

const cssTokenFiles = [
path.resolve(__dirname, '../css/src/variables/index.css'),
path.resolve(__dirname, '../css/src/tokens/index.css')
];

module.exports = {
stories: ['../core/components/**/*.story.@(js|jsx|ts|tsx)', '../core/ai-components/**/*.story.@(js|jsx|ts|tsx)'],
addons: [
Expand All @@ -24,7 +29,9 @@ module.exports = {
postcssOptions: {
plugins: [
require('autoprefixer'),
require('postcss-color-mod-function'),
require('postcss-color-mod-function')({
importFrom: cssTokenFiles,
}),
],
},
},
Expand Down
Loading

0 comments on commit 0e80041

Please sign in to comment.