chore(aot-cookbook): gitignore gen'd css and skip rollup warn on 'this'
This commit is contained in:
parent
9d965a700d
commit
60b4287a38
|
@ -1,5 +1,6 @@
|
|||
**/*.ngfactory.ts
|
||||
**/*.ngsummary.json
|
||||
**/*.shim.ngstyle.ts
|
||||
**/*.metadata.json
|
||||
dist
|
||||
!app/tsconfig.json
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue