UNPKG

hyper-manager

Version:

The ultimate and most complete extension to manage all your connections in one place for Hyper.js

19 lines (16 loc) 356 B
import webpack from 'webpack' import webpackConfig from './webpack.config' import { WATCH } from './flags' const compiler = webpack(webpackConfig) const done = (error, stats) => { if (error) { throw error } console.log(stats.toString(webpackConfig.stats)) } if (WATCH) { compiler.watch({}, done) } else { compiler.run(done) }