@wavemaker/angular-codegen 11.0.0-next.138552 → 11.0.0-next.138578

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,10 +19,7 @@
19
19
  "indexTransform": "./build-scripts/index-html-transform.js",
20
20
  "deployUrl": "ng-bundle/",
21
21
  "outputPath": "dist/ng-bundle",
22
- "index": {
23
- "input": "src/index.html",
24
- "output": "../index.html"
25
- },
22
+ "index": "src/index.html",
26
23
  "main": "src/main.ts",
27
24
  "polyfills": "src/polyfills.ts",
28
25
  "tsConfig": "src/tsconfig.app.json",
@@ -96,6 +93,7 @@
96
93
  "optimization": true,
97
94
  "outputHashing": "all",
98
95
  "sourceMap": false,
96
+ "extractCss": true,
99
97
  "namedChunks": false,
100
98
  "aot": true,
101
99
  "extractLicenses": true,
@@ -118,6 +116,7 @@
118
116
  "optimization": false,
119
117
  "outputHashing": "all",
120
118
  "sourceMap": false,
119
+ "extractCss": true,
121
120
  "namedChunks": true,
122
121
  "aot": true,
123
122
  "extractLicenses": false,
@@ -136,10 +135,7 @@
136
135
  "builder": "@angular-devkit/build-angular:browser",
137
136
  "options": {
138
137
  "outputPath": "dist",
139
- "index": {
140
- "input": "src/index.html",
141
- "output": "../index.html"
142
- },
138
+ "index": "src/index.html",
143
139
  "main": "src/main.ts",
144
140
  "polyfills": "src/polyfills.ts",
145
141
  "tsConfig": "src/tsconfig.app.json",
@@ -178,21 +174,13 @@
178
174
  "./node_modules/iscroll/build/iscroll.js",
179
175
  "./node_modules/js-cookie/src/js.cookie.js",
180
176
  "./node_modules/jssha/dist/sha256.js"
181
- ],
182
- "aot": false,
183
- "vendorChunk": true,
184
- "extractLicenses": false,
185
- "buildOptimizer": false,
186
- "sourceMap": true,
187
- "optimization": false,
188
- "namedChunks": true
177
+ ]
189
178
  },
190
179
  "configurations": {
191
180
  "production": {
192
181
  "browserTarget": "angular-app:build:production"
193
182
  }
194
- },
195
- "defaultConfiguration": ""
183
+ }
196
184
  },
197
185
  "serve": {
198
186
  "builder": "@angular-devkit/build-angular:dev-server",
@@ -263,8 +263,10 @@ const generateSha1 = (content) => {
263
263
  deployUrl = deployUrl.slice(0, deployUrl.length - 1);
264
264
  }
265
265
 
266
+ fs.copyFileSync('./dist/ng-bundle/index.html', './dist/index.html');
266
267
  const contents = await readFile(`./dist/index.html`, `utf8`);
267
268
  $ = cheerio.load(contents);
269
+ $('script').attr('defer', 'true');
268
270
  setMobileProjectType(angularJson);
269
271
  if (!isMobileProject) {
270
272
  isProdBuild = fs.existsSync(`${process.cwd()}/dist/ng-bundle/wm-styles.css`);