Skip to content

Commit 337c7d5

Browse files
committed
fix: regression bug from css-loader (breaking change in default WebPack plugin config) introduced in previous commit (NPM package updates)
1 parent 42f463f commit 337c7d5

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const preloadConfig = require("./webpack.config.preload");
99
// console.log("-------------------- MAIN config:");
1010
// console.log(util.inspect(mainConfig, { colors: true, depth: null, compact: false, customInspect: true }));
1111

12-
console.log("-------------------- LIBRARY config:");
13-
console.log(util.inspect(libraryConfig, { colors: true, depth: null, compact: false, customInspect: true }));
12+
// console.log("-------------------- LIBRARY config:");
13+
// console.log(util.inspect(libraryConfig, { colors: true, depth: null, compact: false, customInspect: true }));
1414

1515
// console.log("-------------------- READER config:");
1616
// console.log(util.inspect(readerConfig, { colors: true, depth: null, compact: false, customInspect: true }));

webpack.config.renderer-library.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ const cssLoaderConfig = [
129129
// mode: "local",
130130
// exportOnlyLocals: true,
131131
// exportGlobals: true,
132+
namedExport: false,
133+
exportLocalsConvention: 'as-is',
132134
localIdentName: "[local]",
133135
},
134136
// modules: nodeEnv !== "production" && false ? { // MUST USE STRICT BASE64, NO PATH DEPENDENT (OTHERWISE BREAK CROSS-FILE CSS CLASSES WITH IDENTICAL NAMES, E.G. SUBCLASSES IN NESTED STATEMENTS)
@@ -183,6 +185,8 @@ const scssLoaderConfig = [
183185
// mode: "local",
184186
// exportOnlyLocals: true,
185187
// exportGlobals: true,
188+
namedExport: false,
189+
exportLocalsConvention: 'as-is',
186190
localIdentName: "[local]",
187191
},
188192
// modules: nodeEnv !== "production" && false ? { // MUST USE STRICT BASE64, NO PATH DEPENDENT (OTHERWISE BREAK CROSS-FILE CSS CLASSES WITH IDENTICAL NAMES, E.G. SUBCLASSES IN NESTED STATEMENTS)

webpack.config.renderer-reader.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ const cssLoaderConfig = [
128128
// mode: "local",
129129
// exportOnlyLocals: true,
130130
// exportGlobals: true,
131+
namedExport: false,
132+
exportLocalsConvention: 'as-is',
131133
localIdentName: "[local]",
132134
},
133135
// modules: nodeEnv !== "production" && false ? { // MUST USE STRICT BASE64, NO PATH DEPENDENT (OTHERWISE BREAK CROSS-FILE CSS CLASSES WITH IDENTICAL NAMES, E.G. SUBCLASSES IN NESTED STATEMENTS)
@@ -181,6 +183,8 @@ const scssLoaderConfig = [
181183
// mode: "local",
182184
// exportOnlyLocals: true,
183185
// exportGlobals: true,
186+
namedExport: false,
187+
exportLocalsConvention: 'as-is',
184188
localIdentName: "[local]",
185189
},
186190
// modules: nodeEnv !== "production" && false ? { // MUST USE STRICT BASE64, NO PATH DEPENDENT (OTHERWISE BREAK CROSS-FILE CSS CLASSES WITH IDENTICAL NAMES, E.G. SUBCLASSES IN NESTED STATEMENTS)

0 commit comments

Comments
 (0)