Add copyFile, minFile, and writeFile to lib/common/util.js.

This commit is contained in:
John-David Dalton
2016-02-21 18:36:12 -08:00
parent 1517745a6a
commit f2985bda5f
5 changed files with 40 additions and 32 deletions

View File

@@ -5,7 +5,7 @@ var _ = require('lodash'),
path = require('path'),
webpack = require('webpack');
var minify = require('../common/minify.js');
var util = require('../common/util');
var basePath = path.join(__dirname, '..', '..'),
distPath = path.join(basePath, 'dist'),
@@ -48,7 +48,7 @@ function build() {
async.series([
_.partial(webpack, mappingConfig),
_.partial(webpack, fpConfig),
_.partial(minify, path.join(distPath, filename))
util.minFile(path.join(distPath, filename))
], onComplete);
}