3 var _ = require('lodash'),
4 async = require('async'),
5 path = require('path'),
6 webpack = require('webpack');
8 var file = require('../common/file');
10 var basePath = path.join(__dirname, '..', '..'),
11 distPath = path.join(basePath, 'dist'),
12 fpPath = path.join(basePath, 'fp'),
13 filename = 'lodash.fp.js';
16 'entry': path.join(fpPath, '_convertBrowser.js'),
21 'libraryTarget': 'umd'
24 new webpack.optimize.OccurenceOrderPlugin,
25 new webpack.optimize.DedupePlugin
30 'entry': path.join(fpPath, '_mapping.js'),
33 'filename': 'mapping.fp.js',
35 'libraryTarget': 'umd'
39 /*----------------------------------------------------------------------------*/
41 function onComplete(error) {
49 _.partial(webpack, mappingConfig),
50 _.partial(webpack, fpConfig),
51 file.min(path.join(distPath, filename))