Skip to content

Commit 657bcf7

Browse files
committed
Disabling buildOptimizer due to bug: angular/angular-cli#12096
1 parent 71c9db3 commit 657bcf7

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

client/angular.json

+2-10
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
"src/styles.less",
2525
"node_modules/primeng/resources/primeng.min.css",
2626
"node_modules/primeicons/primeicons.css"
27-
],
28-
"scripts": [
29-
"node_modules/imagesloaded/imagesloaded.pkgd.js",
30-
"node_modules/masonry-layout/dist/masonry.pkgd.js"
3127
]
3228
},
3329
"configurations": {
@@ -39,8 +35,8 @@
3935
"namedChunks": false,
4036
"aot": true,
4137
"extractLicenses": true,
42-
"vendorChunk": false,
43-
"buildOptimizer": true,
38+
"vendorChunk": true,
39+
"buildOptimizer": false,
4440
"fileReplacements": [
4541
{
4642
"replace": "src/environments/environment.ts",
@@ -74,10 +70,6 @@
7470
"karmaConfig": "./karma.conf.js",
7571
"polyfills": "src/polyfills.ts",
7672
"tsConfig": "src/tsconfig.spec.json",
77-
"scripts": [
78-
"node_modules/imagesloaded/imagesloaded.pkgd.js",
79-
"node_modules/masonry-layout/dist/masonry.pkgd.js"
80-
],
8173
"styles": [
8274
"node_modules/normalize.css/normalize.css",
8375
"src/styles.less",

client/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"@angular/platform-browser-dynamic": "^6.0.3",
2323
"@angular/router": "^6.0.3",
2424
"core-js": "^2.4.1",
25-
"imagesloaded": "^4.1.4",
2625
"masonry-layout": "^4.2.1",
2726
"normalize.css": "^8.0.0",
2827
"primeicons": "^1.0.0-beta.10",

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"watch": "concurrently --kill-others --names \"SERVER,CLIENT\" -c \"bgBlue.bold,bgMagenta.bold\" --handle-input \"npm run watch-server\" \"npm run watch-client\"",
1212

1313
"build": "npm run build:en && npm run build:pl",
14-
"build:pl": "cd client && ng build --prod --deploy-url=static/pl/ --i18n-file src/locale/messages.pl.xlf --i18n-format xlf --i18n-locale pl --outputPath dist/pl",
15-
"build:en": "cd client && ng build --prod --deploy-url=static/en/ --i18n-locale en --outputPath dist/en",
14+
"build:pl": "cd client && ng build --configuration production --prod --deploy-url=static/pl/ --i18n-file src/locale/messages.pl.xlf --i18n-format xlf --i18n-locale pl --outputPath dist/pl",
15+
"build:en": "cd client && ng build --configuration production --prod --deploy-url=static/en/ --i18n-locale en --outputPath dist/en",
1616

1717
"release": "release-it",
1818
"release:clean": "rimraf dist",

0 commit comments

Comments
 (0)