UNPKG

react-redux-express

Version:

React fullstack generator with express,redux, and some components.

24 lines (20 loc) 480 B
/** * Created by Zhengfeng Yao on 16/8/24. */ import webpack from 'webpack'; import webpackConfig from './webpack.config'; /** * Creates application bundles from the source files. */ function bundle() { return new Promise((resolve, reject) => { webpack(webpackConfig).run((err, stats) => { if (err) { return reject(err); } console.log(stats.toString(webpackConfig[0].stats)); return resolve(); }); }); } export default bundle;