bukopin-redemption-client-r.../scripts/build-parcel.js
Rifqy Zacky Ariadhy 1a000700e6 Initial commit
2019-01-02 18:39:53 +07:00

12 lines
453 B
JavaScript

const spawn = require("cross-spawn");
const path = require('path');
const fs = require('fs-extra-promise');
fs.removeSync(path.normalize(`${__dirname}/../.cache`));
fs.removeSync(path.normalize(`${__dirname}/../dist`));
require("./link-assets")();
// Spawn NPM synchronously
const result = spawn.sync('parcel', 'build public/index.parcel.html --log-level 4 --out-file index.html --detailed-report --no-source-maps'.split(" "), { stdio: 'inherit' });