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
|
**/*.ngfactory.ts
|
||||||
**/*.ngsummary.json
|
**/*.ngsummary.json
|
||||||
|
**/*.shim.ngstyle.ts
|
||||||
**/*.metadata.json
|
**/*.metadata.json
|
||||||
dist
|
dist
|
||||||
!app/tsconfig.json
|
!app/tsconfig.json
|
||||||
|
|
|
@ -10,6 +10,17 @@ export default {
|
||||||
dest: 'dist/build.js', // output a single application bundle
|
dest: 'dist/build.js', // output a single application bundle
|
||||||
sourceMap: false,
|
sourceMap: false,
|
||||||
format: 'iife',
|
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: [
|
plugins: [
|
||||||
nodeResolve({jsnext: true, module: true}),
|
nodeResolve({jsnext: true, module: true}),
|
||||||
// #docregion commonjs
|
// #docregion commonjs
|
||||||
|
|
Loading…
Reference in New Issue