UNPKG

comindware.ui

Version:

Comindware Core UI provides the basic components like editors, lists, dropdowns, popups that we so desperately need while creating Marionette-based single-page applications.

38 lines (32 loc) 1.08 kB
/** * Developer: Stepan Burguchev * Date: 11/30/2016 * Copyright: 2009-2016 ApprovalMax * All Rights Reserved * * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ApprovalMax * The copyright notice above does not evidence any * actual or intended publication of such source code. */ /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */ 'use strict'; const webpackConfigFactory = require('../webpack.config.js'); const webpack = require('webpack'); const gulpUtil = require('gulp-util'); module.exports = uglify => callback => { const webpackConfig = webpackConfigFactory.build({ env: 'production', uglify: uglify || false }); // run webpack webpack(webpackConfig, function(err, stats) { if (err) { throw new gulpUtil.PluginError('webpack:build:core', err); } gulpUtil.log('[webpack:build:core]', stats.toString({ colors: true, chunks: false })); callback(); }); };