Inital commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
|
||||
require('ts-node/register');
|
||||
|
||||
const webpack = require('webpack');
|
||||
const config = require('../webpack.config.ts');
|
||||
|
||||
webpack(config, (error, stats) => {
|
||||
if (error) {
|
||||
console.error(error.stack || error);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
console.log(stats.toString({
|
||||
colors: true,
|
||||
chunks: false,
|
||||
modules: false
|
||||
}));
|
||||
|
||||
// Webpack 4 and some of its legacy plugins retain handles on Node.js 22.
|
||||
// The callback means all assets have been written, so terminate explicitly.
|
||||
process.exit(stats.hasErrors() ? 1 : 0);
|
||||
});
|
||||
Reference in New Issue
Block a user