Skip to content

Commit

Permalink
build: Optimization on build
Browse files Browse the repository at this point in the history
* BETTER Disable optimizations on production build to avoid errors when application is loaded in Invenio webpack.
* FIX Deactivate cache on node_modules in Travis configuration, to avoid error on @cospired package on travis tests.

Co-Authored-by: Alicia Zangger <alicia.zangger@rero.ch>
Co-Authored-by: Sébastien Délèze <sebastien.deleze@rero.ch>
Signed-off-by: Sébastien Délèze <sebastien.deleze@rero.ch>
  • Loading branch information
Sébastien Délèze and Alicia Zangger committed Oct 4, 2019
1 parent cd801ba commit 9d0e02f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ language: node_js
node_js:
- "10"

cache:
directories:
- ./node_modules
# Can be reactived when this issue will be resolved: https://github.com/cospired/i18n-iso-languages/issues/17
#cache:
# directories:
# - ./node_modules

install:
- npm install
Expand Down
4 changes: 2 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
"with": "projects/admin/src/environments/environment.prod.ts"
}
],
"optimization": true,
"optimization": false,
"outputHashing": "none",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"buildOptimizer": false,
"budgets": [
{
"type": "initial",
Expand Down

0 comments on commit 9d0e02f

Please sign in to comment.