Skip to content

Commit a9ce762

Browse files
Update project.json in KnockoutSpa and ReactSpa
1 parent 0d34dba commit a9ce762

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

templates/KnockoutSpa/project.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,18 @@
5252
"publishOptions": {
5353
"include": [
5454
"appsettings.json",
55-
"ClientApp",
5655
"node_modules",
57-
"typings",
5856
"Views",
59-
"tsconfig.json",
60-
"tsd.json",
6157
"web.config",
62-
"webpack.*.js",
6358
"wwwroot"
6459
]
6560
},
6661

6762
"scripts": {
6863
"prepublish": [
6964
"npm install",
70-
"node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js",
71-
"node node_modules/webpack/bin/webpack.js"
65+
"node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js --env.prod",
66+
"node node_modules/webpack/bin/webpack.js --env.prod"
7267
],
7368
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
7469
},

templates/ReactSpa/project.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,19 @@
5151

5252
"publishOptions": {
5353
"include": [
54-
".babelrc",
5554
"appsettings.json",
56-
"ClientApp",
5755
"node_modules",
58-
"typings",
5956
"Views",
60-
"tsconfig.json",
61-
"tsd.json",
6257
"web.config",
63-
"webpack.*.js",
6458
"wwwroot"
6559
]
6660
},
6761

6862
"scripts": {
6963
"prepublish": [
7064
"npm install",
71-
"node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js",
72-
"node node_modules/webpack/bin/webpack.js"
65+
"node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js --env.prod",
66+
"node node_modules/webpack/bin/webpack.js --env.prod"
7367
],
7468
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
7569
},

0 commit comments

Comments
 (0)