babel-plugin-jsx/scripts/site.js
2020-06-17 19:57:37 +08:00

14 lines
372 B
JavaScript

const webpack = require('webpack');
const webpackConfig = require('./webpack.base.conf');
webpack(Object.assign(webpackConfig, { mode: 'production', devtool: false }), (err, stats) => {
if (err) throw err;
process.stdout.write(`${stats.toString({
colors: true,
modules: false,
children: false,
chunks: false,
chunkModules: false,
})}\n\n`);
});