1
0
mirror of https://github.com/twirl/The-API-Book.git synced 2025-05-13 21:26:26 +02:00
The-API-Book/scripts/build-examples.js
2023-07-30 15:25:21 +03:00

13 lines
323 B
JavaScript

const webpack = require('webpack');
const path = require('path');
const dir = process.argv[2];
webpack(require(path.resolve(dir, 'webpack.config.js'))).run((err, stats) => {
if (err) {
console.error(`Error ${err.toString()}\n${err.stack}`);
}
console.log(`${dir} processed`);
process.exit(0);
});