Skip to content

Commit e71ed90

Browse files
committed
fix: remove output log
1 parent 01defd3 commit e71ed90

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

lib/color.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

lib/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const { regexCssGlobal, regexScssGlobal } = require('./constants')
2-
const { color } = require('./color')
32

43
function patchServerWebpackConfig(config) {
54
const originalEntry = config.entry
@@ -13,7 +12,6 @@ function patchServerWebpackConfig(config) {
1312
if (!entry['pages/_document'].includes(patchPath)) {
1413
entry['pages/_document'].unshift(patchPath)
1514
}
16-
console.log(`${color.cyan('info')} - Enabled global css/scss (server).`)
1715
return entry
1816
}
1917
}
@@ -35,7 +33,6 @@ function patchWebpackStyleRules(rule) {
3533
rule.test &&
3634
(rule.test.source === regexCssGlobal.source || rule.test.source === regexScssGlobal.source)
3735
) {
38-
console.log(`${color.cyan('info')} - Enabled global css/scss (client).`)
3936
// Remove issuer for allow import css from 3d-party libs and locals.
4037
delete rule.issuer
4138
}

0 commit comments

Comments
 (0)