diff --git a/app/src/compile.js b/app/src/compile.js index 21092b74..c9fd2940 100644 --- a/app/src/compile.js +++ b/app/src/compile.js @@ -33,10 +33,6 @@ module.exports = function () { this.props.jQuery ]); - this.model.wiredepExclusions = [ - this.props.ui.name - ]; - this.model.modulesDependencies = _.flatten([ angularModules, this.props.resource.module, diff --git a/app/src/format.js b/app/src/format.js index f36691af..2f4bcdc9 100644 --- a/app/src/format.js +++ b/app/src/format.js @@ -24,14 +24,6 @@ module.exports = function () { this.bowerResolutions = processBowerDependencies(this.model.bowerResolutions); - this.wiredepExclusions = _.chain(this.model.wiredepExclusions) - .filter(_.isString) - .map(function (dependency) { - return '\'' + dependency + '\''; - }) - .value() - .join(', '); - this.modulesDependencies = _.chain(this.model.modulesDependencies) .filter(_.isString) .map(function (dependency) { diff --git a/app/templates/gulp/_wiredep.js b/app/templates/gulp/_wiredep.js index a3241b4b..68289591 100644 --- a/app/templates/gulp/_wiredep.js +++ b/app/templates/gulp/_wiredep.js @@ -9,7 +9,7 @@ gulp.task('wiredep', function () { return gulp.src('src/index.html') .pipe(wiredep({ directory: 'bower_components', - exclude: [<%= wiredepExclusions %>], + exclude: [/bootstrap-sass-official/, /bootstrap.js/<% if(props.cssPreprocessor.key !== 'css') { %>, /bootstrap.css/<% } %>], })) .pipe(gulp.dest('src')); });