UNPKG

380 BJavaScriptView Raw
1let execSync = require('child_process').execSync;
2let fs = require('fs');
3
4const webpack = require('webpack');
5
6let config = require('../lib/webpack/webpackConfig')('static');
7let compiler = webpack(config);
8
9compiler.run((err, stats) => {
10 if (err) {
11 return console.error(err);
12 }
13
14 if (stats.hasErrors()) {
15 return console.error(stats.toString("errors-only"));
16 }
17});
\No newline at end of file