Skip to content

Commit

Permalink
docs(css-modules): Add local identifier name for CSS modules in docs …
Browse files Browse the repository at this point in the history
…site.

So that it matches the published package names.
  • Loading branch information
ryanoglesby08 committed Aug 14, 2017
1 parent 0c372b8 commit d73e711
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default {
autoprefixer(),
postcssModules({
globalModulePaths: [/src\/scss/, /src\/components\/(?!Button)/],
generateScopedName: "TDS_[name]__[local]___[hash:base64:5]",
generateScopedName: 'TDS_[name]__[local]___[hash:base64:5]',
getJSON (id, exportTokens) {
cssExportMap[id] = exportTokens;
}
Expand Down
1 change: 1 addition & 0 deletions config/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ module.exports = {
loader: 'css-loader',
options: {
modules: true,
localIdentName: 'TDS_[name]__[local]___[hash:base64:5]',
importLoaders: 1, // Number of loaders applied before CSS loader
}
},
Expand Down

0 comments on commit d73e711

Please sign in to comment.