UNPKG
@jmodule/plugin-webpack
Version:
beta (0.4.11-0)
latest (0.4.11)
test (0.4.9-0)
0.4.11
0.4.11-0
0.4.10-0
0.4.9-1
0.4.9-0
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.3-0
0.4.2
0.4.2-0
0.4.1
0.4.0
模块化工程构建 Webpack 插件
jmodule.jd.com
jdtdevops/jmodule
@jmodule/plugin-webpack
/
utils
/
showErrorTip.js
11 lines
(9 loc)
•
246 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
chalk =
require
(
'chalk'
);
module
.
exports
=
function
showErrorTip
(
msg, tip
) {
// @ts-ignore
console
.
log
(chalk.
red
(msg));
console
.
log
();
console
.
log
(
`\t
${tip.join(
'\n\t#or\n\t'
)}
`
);
console
.
log
(); process.
exit
(
0
); };