chore(aot-cookbook): gitignore gen'd css and skip rollup warn on 'this'

This commit is contained in:
Ward Bell 2017-01-14 12:44:08 -08:00
parent 9d965a700d
commit 60b4287a38
2 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,6 @@
**/*.ngfactory.ts
**/*.ngsummary.json
**/*.shim.ngstyle.ts
**/*.metadata.json
dist
!app/tsconfig.json

View File

@ -10,6 +10,17 @@ export default {
dest: 'dist/build.js', // output a single application bundle
sourceMap: false,
format: 'iife',
onwarn: function(warning) {
// skip certain warnings
// Should intercept ... but doesn't in some rollup versions
if ( warning.code === 'THIS_IS_UNDEFINED' ) { return; }
// Intercepts in some rollup versions
if ( warning.indexOf("The 'this' keyword is equivalent to 'undefined'") > -1 ) { return; }
// console.warn everything else
console.warn ? console.warn( warning.message ) : console.log( warning.message ) ;
},
plugins: [
nodeResolve({jsnext: true, module: true}),
// #docregion commonjs
@ -22,4 +33,4 @@ export default {
// #enddocregion uglify
]
}
// #enddocregion config
// #enddocregion config