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

17 lines
379 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.watch({}, (err, stats) => {
gutil.log('[webpack:build]', stats.toString({
chunks: false, // Makes the build much quieter
colors: true,
}));
});
}
run();