diff options
Diffstat (limited to 'build/release.js')
-rw-r--r-- | build/release.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build/release.js b/build/release.js index aaaf1c053..99b26833b 100644 --- a/build/release.js +++ b/build/release.js @@ -35,6 +35,14 @@ function replaceAtVersion() { return matches; } +function removeExternals ( packager ) { + Object.keys( packager.builtFiles ).forEach( function( filepath ) { + if ( /^external\//.test( filepath ) ) { + delete packager.builtFiles[ filepath ]; + } + } ); +} + function addManifest( packager ) { var output = packager.builtFiles; output.MANIFEST = Object.keys( output ).sort( function( a, b ) { @@ -62,6 +70,7 @@ function buildCDNPackage( callback ) { themeVars: null } ); packager.ready.then( function() { + removeExternals( packager ); addManifest( packager ); packager.toZip( target, { basedir: "" |