ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

bundle.js (696B)


      1 /**
      2  * React Starter Kit (https://www.reactstarterkit.com/)
      3  *
      4  * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
      5  *
      6  * This source code is licensed under the MIT license found in the
      7  * LICENSE.txt file in the root directory of this source tree.
      8  */
      9 
     10 import webpack from 'webpack';
     11 import webpackConfig from './webpack.config';
     12 
     13 /**
     14  * Creates application bundles from the source files.
     15  */
     16 function bundle() {
     17   return new Promise((resolve, reject) => {
     18     webpack(webpackConfig).run((err, stats) => {
     19       if (err) {
     20         return reject(err);
     21       }
     22 
     23       console.log(stats.toString(webpackConfig[0].stats));
     24       return resolve();
     25     });
     26   });
     27 }
     28 
     29 export default bundle;