Skip to content

Commit

Permalink
perf: remove data-testing attributes for production build
Browse files Browse the repository at this point in the history
  • Loading branch information
dhhyi committed Feb 3, 2021
1 parent 0dda85d commit 82ad581
Show file tree
Hide file tree
Showing 5 changed files with 635 additions and 1,961 deletions.
12 changes: 10 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"prefix": "ish",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"outputPath": "dist/browser",
"index": "src/index.html",
Expand All @@ -43,6 +43,10 @@
},
"configurations": {
"production": {
"customWebpackConfig": {
"path": "./templates/production/webpack.production.js",
"replaceDuplicatePlugins": true
},
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
Expand Down Expand Up @@ -119,14 +123,18 @@
}
},
"server": {
"builder": "@angular-devkit/build-angular:server",
"builder": "@angular-builders/custom-webpack:server",
"options": {
"outputPath": "dist/server",
"main": "server.ts",
"tsConfig": "tsconfig.server.json"
},
"configurations": {
"production": {
"customWebpackConfig": {
"path": "./templates/production/webpack.production.js",
"replaceDuplicatePlugins": true
},
"outputHashing": "media",
"fileReplacements": [
{
Expand Down
Loading

0 comments on commit 82ad581

Please sign in to comment.