You've already forked The-API-Book
mirror of
https://github.com/twirl/The-API-Book.git
synced 2025-06-12 22:17:33 +02:00
live examples continued
This commit is contained in:
12
scripts/build-examples.js
Normal file
12
scripts/build-examples.js
Normal file
@ -0,0 +1,12 @@
|
||||
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);
|
||||
});
|
Reference in New Issue
Block a user