Skip to content

Commit f3b08b5

Browse files
CopilotHristo313
andauthored
feat(igc-ts): replace web-dev-server with vite preview for start:build
Agent-Logs-Url: https://github.com/IgniteUI/igniteui-cli/sessions/95ab942c-4353-430b-a3b1-9ae59bb279f9 Co-authored-by: Hristo313 <57346540+Hristo313@users.noreply.github.com>
1 parent a34bb3f commit f3b08b5

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

packages/cli/templates/webcomponents/igc-ts/projects/_base/files/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"scripts": {
1616
"start": "concurrently -k -r \"tsc --watch\" \"vite\"",
1717
"build": "rimraf dist && tsc && node --max-old-space-size=4096 node_modules/vite/bin/vite.js build",
18-
"start:build": "web-dev-server --root-dir dist --app-index index.html --open",
18+
"start:build": "vite preview",
1919
"lint": "eslint \"**/*.{js,ts}\" --ignore-pattern .gitignore",
2020
"test": "tsc --project tsconfig.test.json && vitest run"
2121
},
@@ -28,7 +28,6 @@
2828
"devDependencies": {
2929
"@babel/preset-env": "^7.28.3",
3030
"@vitest/browser-playwright": "^4.1.0",
31-
"@web/dev-server": "^0.4.6",
3231
"babel-plugin-template-html-minifier": "^4.1.0",
3332
"concurrently": "^9.2.1",
3433
"deepmerge": "^4.3.1",

packages/cli/templates/webcomponents/igc-ts/projects/_base_with_home/files/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"scripts": {
1616
"start": "concurrently -k -r \"tsc --watch\" \"vite\"",
1717
"build": "rimraf dist && tsc && node --max-old-space-size=4096 node_modules/vite/bin/vite.js build",
18-
"start:build": "web-dev-server --root-dir dist --app-index index.html --open",
18+
"start:build": "vite preview",
1919
"lint": "eslint \"**/*.{js,ts}\" --ignore-pattern .gitignore",
2020
"test": "tsc --project tsconfig.test.json && vitest run"
2121
},
@@ -36,7 +36,6 @@
3636
"devDependencies": {
3737
"@babel/preset-env": "^7.28.3",
3838
"@vitest/browser-playwright": "^4.1.0",
39-
"@web/dev-server": "^0.4.6",
4039
"babel-plugin-template-html-minifier": "^4.1.0",
4140
"concurrently": "^9.2.1",
4241
"deepmerge": "^4.3.1",

0 commit comments

Comments
 (0)