From d1502cd49f4fda95b9132579381cbdbf791bcea7 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 6 Apr 2016 10:36:18 +1200 Subject: [PATCH] Include config in bundles Merge regression --- gulpfile.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 750eb8f9a..4dfe68f29 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -217,6 +217,7 @@ gulp.task('bundle-lib', function bundleLib() { .require(PATHS.ADMIN_JAVASCRIPT_SRC + '/components/north-header/index', { expose: 'components/north-header/index' }) .require(PATHS.ADMIN_JAVASCRIPT_SRC + '/components/north-header-breadcrumbs/index', { expose: 'components/north-header-breadcrumbs/index' }) .require(PATHS.FRAMEWORK_JAVASCRIPT_SRC + '/i18n.js', { expose: 'i18n' }) + .require(PATHS.ADMIN_JAVASCRIPT_SRC + '/config.js', { expose: 'config' }) .require(PATHS.FRAMEWORK_JAVASCRIPT_SRC + '/jQuery.js', { expose: 'jQuery' }) .require(PATHS.ADMIN_JAVASCRIPT_SRC + '/reducer-register.js', { expose: 'reducer-register' }) .require(PATHS.FRAMEWORK_JAVASCRIPT_SRC + '/router.js', { expose: 'router' }) @@ -239,6 +240,7 @@ gulp.task('bundle-legacy', function bundleLeftAndMain() { .on('update', bundleLeftAndMain) .on('log', function (msg) { gulpUtil.log('Finished', 'bundled ' + bundleFileName + ' ' + msg) }) .transform('babelify', babelifyOptions) + .external('config') .external('jQuery') .external('i18n') .external('router')