diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/tasks/build.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/build/tasks/build.js b/build/tasks/build.js index 1e1c6bb37..a62f04ab1 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -168,7 +168,8 @@ module.exports = function( grunt ) { * whether it should included or excluded */ excluder = function( flag ) { - var m = /^(\+|\-|)([\w\/-]+)$/.exec( flag ), + var additional, + m = /^(\+|\-|)([\w\/-]+)$/.exec( flag ), exclude = m[ 1 ] === "-", module = m[ 2 ]; @@ -192,8 +193,16 @@ module.exports = function( grunt ) { } } + additional = removeWith[ module ]; + // Check removeWith list - excludeList( removeWith[ module ] ); + if ( additional ) { + excludeList( additional.remove || additional ); + if ( additional.include ) { + included = included.concat( additional.include ); + grunt.log.writeln( "+" + additional.include ); + } + } } else { grunt.log.error( "Module \"" + module + "\" is a minimum requirement." ); if ( module === "selector" ) { |