2020-05-25 00:59:46 +08:00

9 lines
211 B
JavaScript

const webpack = require('webpack');
const config = require('./webpack.prod.conf');
webpack(config, (err, stats) => {
if (err || stats.hasErrors()) {
console.error(err); // 错误打印
return;
}
});