Created
May 29, 2016 21:35
-
-
Save deebloo/81df859a295b4cf82ba9367c4403aa0e to your computer and use it in GitHub Desktop.
angular-cli-build if you want more control over your files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global require, module */ | |
var Angular2App = require('angular-cli/lib/broccoli/angular2-app'); | |
const vendorNpmFiles = [ | |
'systemjs/dist/system-polyfills.js', | |
'systemjs/dist/system.src.js', | |
'zone.js/dist/**/*.+(js|js.map)', | |
'es6-shim/es6-shim.js', | |
'reflect-metadata/**/*.+(js|js.map)', | |
'rxjs/**/*.+(js|js.map)', | |
'@angular/**/*.+(js|js.map)', | |
'@angular2-material/**/*.js' | |
] | |
const polyfills = [ | |
'vendor/es6-shim/es6-shim.js', | |
'vendor/reflect-metadata/Reflect.js', | |
'vendor/systemjs/dist/system.src.js', | |
'vendor/zone.js/dist/zone.js' | |
] | |
module.exports = function (defaults) { | |
return new Angular2App(defaults, { vendorNpmFiles, polyfills }); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment