17const CONCURRENT_MODE = process.argv.includes('--concurrent');
18const INJECT = !process.argv.includes('--no-injection');
19▶const JSON_OUT = (function () {
20 const arg = process.argv.find(function (a) {
21 return a.startsWith('--json-out=');
· · ·
20▶ const arg = process.argv.find(function (a) {
21 return a.startsWith('--json-out=');
22 });
· · ·
24})();
25const jsonResults = [];
26▶function writeJsonOut(mode) {
27 if (!JSON_OUT) return;
28 fs.writeFileSync(JSON_OUT, JSON.stringify({mode, results: jsonResults}));
· · ·
33// ---------------------------------------------------------------------------
34
35▶function build() {
36 const config = require('./webpack.config');
37 return new Promise(function (resolve, reject) {
· · ·
37▶ return new Promise(function (resolve, reject) {
38 webpack(config, function (err, stats) {
39 if (err) {
+ 30 more matches in this file