webpack-auto-inject-version/tools/compile.js
2017-04-10 21:33:32 +01:00

16 lines
369 B
JavaScript

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();