summaryrefslogtreecommitdiff
path: root/webpack/module/rules
diff options
context:
space:
mode:
Diffstat (limited to 'webpack/module/rules')
-rw-r--r--webpack/module/rules/theme-color.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/webpack/module/rules/theme-color.ts b/webpack/module/rules/theme-color.ts
index 14f5457bf3..4828e00ec7 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',