Skip to content

Commit 0ed9afc

Browse files
authored
feat: change default logLevel to 'silent' (#58)
1 parent 2bbf32b commit 0ed9afc

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Diff for: src/index.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,15 @@ export default function happyCssModules(opts: Options): Plugin {
1414

1515
return {
1616
name: "happy-css-modules",
17-
buildStart: () => {
18-
return run(runnerOptions);
17+
buildStart: (buildStartLogs) => {
18+
const logLevel =
19+
opts.logLevel ||
20+
(buildStartLogs.logLevel === "warn"
21+
? undefined
22+
: buildStartLogs.logLevel) ||
23+
"silent";
24+
25+
return run({ ...runnerOptions, logLevel });
1926
},
2027
handleHotUpdate: () => {
2128
return run(runnerOptions);

0 commit comments

Comments
 (0)