diff --git a/config/build.config.js b/config/build.config.js index 539d56ee99a..170e929c8aa 100644 --- a/config/build.config.js +++ b/config/build.config.js @@ -71,9 +71,9 @@ module.exports = { angularIonicFiles: [ 'js/angular/*.js', - 'js/angular/service/**/*.js', - 'js/angular/controller/**/*.js', - 'js/angular/directive/**/*.js', + 'js/angular/service/*/*.js', + 'js/angular/controller/*/*.js', + 'js/angular/directive/*/*.js', ], //Which vendor files to include in dist, used by build diff --git a/gulpfile.js b/gulpfile.js index 7eb3d1a4e37..06807660acc 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -111,7 +111,10 @@ gulp.task('bundle', [ ], function() { IS_RELEASE_BUILD && gulp.src(buildConfig.ionicBundleFiles.map(function(src) { return src.replace(/.js$/, '.min.js'); - })) + }), { + base: buildConfig.dist, + cwd: buildConfig.dist + }) .pipe(header(buildConfig.bundleBanner)) .pipe(concat('ionic.bundle.min.js')) .pipe(gulp.dest(buildConfig.dist + '/js'));