webpack-auto-inject-version/tools/compile.js

17 lines
369 B
JavaScript
Raw Normal View History

2017-04-11 06:33:32 +10:00
import webpack from 'webpack';
import gutil from 'gutil';
import webpackConfig from './webpack.conf';
function run() {
console.log('compiling');
let compiler = webpack(webpackConfig);
compiler.run((err, stats) => {
gutil.log('[webpack:build]', stats.toString({
chunks: false, // Makes the build much quieter
colors: true
}));
});
}
run();