Skip to content

Commit 180d17d

Browse files
committed
update other changes css-loader config options
1 parent 8746b9f commit 180d17d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

x-pack/legacy/plugins/canvas/.storybook/webpack.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ module.exports = async ({ config }) => {
8383
loader: 'css-loader',
8484
options: {
8585
importLoaders: 2,
86-
modules: true,
87-
localIdentName: '[name]__[local]___[hash:base64:5]',
86+
modules: {
87+
localIdentName: '[name]__[local]___[hash:base64:5]',
88+
},
8889
},
8990
},
9091
{

x-pack/legacy/plugins/canvas/shareable_runtime/webpack.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,11 @@ module.exports = {
9999
{
100100
loader: 'css-loader',
101101
options: {
102-
modules: true,
103-
localIdentName: '[name]__[local]___[hash:base64:5]',
104102
localsConvention: 'camelCaseOnly',
105103
sourceMap: !isProd,
104+
modules: {
105+
localIdentName: '[name]__[local]___[hash:base64:5]',
106+
},
106107
},
107108
},
108109
{

0 commit comments

Comments
 (0)