UNPKG

462 BJavaScriptView Raw
1const
2 ora = require('ora'),
3 webpack = require('webpack'),
4 webpackConfig = require('./webpack.config.js'),
5 spinner = ora('Building SDK...');
6
7process.env.NODE_ENV = 'production';
8
9spinner.start();
10
11webpack(webpackConfig, function (err, stats) {
12 spinner.stop();
13 if (err) {
14 throw err;
15 }
16 process.stdout.write(stats.toString({
17 colors: true,
18 modules: false,
19 children: false,
20 chunks: false,
21 chunkModules: false
22 }) + '\n');
23});