diff --git a/webpack/module/rules/theme-color.ts b/webpack/module/rules/theme-color.ts index 14f5457bf..4828e00ec 100644 --- a/webpack/module/rules/theme-color.ts +++ b/webpack/module/rules/theme-color.ts @@ -8,13 +8,14 @@ export default () => ({ enforce: 'pre', test: /\.vue$/, exclude: /node_modules/, - use: [/*{ + use: [{ loader: 'replace-string-loader', options: { - search: /\$theme\-color\-foreground/g, - replace: constants.themeColorForeground + search: '$theme-color-foreground', + replace: constants.themeColorForeground, + flags: 'g' } - }, */{ + }, { loader: 'replace-string-loader', options: { search: '$theme-color',