我自己配置的webpack 也想用这样的错误提示,怎么操作?
http://webpack.github.io/docs...
var webpack = require("webpack");
webpack({
// configuration
}, function(err, stats) {
if (err) { throw new gutil.PluginError('webpack:build', err); }
gutil.log('[webpack:build]', stats.toString({
chunks: false, // Makes the build much quieter
colors: true
}));
});