1 | let execSync = require('child_process').execSync;
|
2 | let fs = require('fs');
|
3 |
|
4 | const webpack = require('webpack');
|
5 |
|
6 | let config = require('../lib/webpack/webpackConfig')('static');
|
7 | let compiler = webpack(config);
|
8 |
|
9 | compiler.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 |