Files
2026-08-19 13:55:59 +09:00

24 lines
528 B
JavaScript

'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);
});