Skip to content

Commit

Permalink
build(rollup): add custom generate scoped name string
Browse files Browse the repository at this point in the history
  • Loading branch information
sungik-choi committed Jul 13, 2023
1 parent cb7ed00 commit 5319a5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/bezier-react/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ const generateConfig = ({
postcss({
extract: 'style.css',
autoModules: true,
modules: {
/**
* ex. Bezier-Button__Button__1w3e4
*/
generateScopedName: 'Bezier-[folder]__[local]__[hash:base64:5]',
},
plugins: [autoprefixer()],
}),
/**
Expand Down

0 comments on commit 5319a5f

Please sign in to comment.