Skip to content
Snippets Groups Projects
Commit 4d410305 authored by mathias.chouet's avatar mathias.chouet
Browse files

Set buildOptimizer to true when building --prod

parent e3232036
No related branches found
No related tags found
1 merge request!78Resolve "MàJ vers Angular 9"
......@@ -57,7 +57,7 @@
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": false,
"buildOptimizer": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
......
......@@ -17,8 +17,8 @@
"mkdocs2pdf": "node scripts/python3.js mkdocs2pdf.py",
"preprocess": "node scripts/preprocessors.js && npm run mkdocs",
"start": "npm run preprocess && npm run ng serve -- --host 0.0.0.0 --poll 5000",
"build-no-pdf": "npm run preprocess && npm run ng build -- --prod --build-optimizer=false",
"build": "npm run preprocess && npm run mkdocs2pdf && npm run ng build -- --prod --build-optimizer=false",
"build-no-pdf": "npm run preprocess && npm run ng build -- --prod",
"build": "npm run preprocess && npm run mkdocs2pdf && npm run ng build -- --prod",
"update-dist-index-mimetypes": "node scripts/update-dist-index-mimetypes.js",
"build-cordova": "npm run build-no-pdf && npm run update-dist-index-mimetypes && node scripts/add-cordova-script.js",
"release-android": "npm run build-cordova && \"node_modules/.bin/cordova\" platform add android; node scripts/remove-duplicate-sitemap.js && \"node_modules/.bin/cordova\" build android && node scripts/move-cordova-release.js",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment