Skip to content

Instantly share code, notes, and snippets.

@deebloo
Created May 29, 2016 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deebloo/81df859a295b4cf82ba9367c4403aa0e to your computer and use it in GitHub Desktop.
Save deebloo/81df859a295b4cf82ba9367c4403aa0e to your computer and use it in GitHub Desktop.
angular-cli-build if you want more control over your files
/* 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