Skip to content

Commit feab817

Browse files
authored
fix: webpack log (#133)
replace `coreLogger` with `console` to avoid logs dismissed under building process.
1 parent edac83f commit feab817

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/beidou-webpack/bin/build.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ if (originEnv !== 'local') {
4141
app.config.env = dev ? 'local' : 'prod';
4242

4343
if (target && !['node', 'browser'].includes(target)) {
44-
app.coreLogger.error(
44+
console.error(
4545
`Expect target to be "node" or "browser"(default), got ${target}`
4646
);
4747
process.exit(1);
4848
}
4949

50-
app.coreLogger.info(`Target is ${target}`);
50+
console.info(`Target is ${target}`);
5151
const compiler = builder(app, target);
5252

5353
compiler.run((err, stats) => {
5454
if (err) {
55-
app.coreLogger.error(err);
55+
console.error(err);
5656
process.exit(1);
5757
}
5858
if (stats) {

0 commit comments

Comments
 (0)