webpack-auto-inject-version/tools/compile.js
2018-03-15 11:07:22 +00:00

17 lines
373 B
JavaScript

import gutil from 'gutil';
import webpack from 'webpack';
import webpackConfig from './webpack.conf';
function run() {
console.log('compiling');
const compiler = webpack(webpackConfig);
compiler.run((err, stats) => {
gutil.log('[webpack:build]', stats.toString({
chunks: false, // Makes the build much quieter
colors: true,
}));
});
}
run();