Skip to content

Commit fe732d8

Browse files
committed
fixed: vite configuration after upgrade to v7
Signed-off-by: Scott Westover <scottwestover2006@gmail.com>
1 parent c482ffd commit fe732d8

File tree

2 files changed

+49
-44
lines changed

2 files changed

+49
-44
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
import { defineConfig } from 'vite';
22

33
export default defineConfig({
4+
base: './',
45
build: {
6+
chunkSizeWarningLimit: 1600,
57
rollupOptions: {
68
output: {
79
entryFileNames: 'assets/js/[name]-[hash].js',
810
},
911
},
1012
},
13+
server: {
14+
port: 3000,
15+
},
1116
});

package.json

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
{
2-
"name": "@devshareacademy/typescript-web-app-template",
3-
"version": "0.2.2",
4-
"description": "A basic Typescript web app project template that uses Vite.",
5-
"scripts": {
6-
"start": "vite --config config/vite.config.js",
7-
"build": "tsc && vite build --config config/vite.config.js",
8-
"serve": "vite preview --config config/vite.config.js",
9-
"lint": "eslint ./src -c ./config/eslint.config.mjs",
10-
"version": "auto-changelog -p && git add CHANGELOG.md"
11-
},
12-
"author": "scottwestover",
13-
"license": "MIT",
14-
"repository": {
15-
"type": "git",
16-
"url": "https://github.com/devshareacademy/typescript-web-app-template.git"
17-
},
18-
"homepage": "https://github.com/devshareacademy/typescript-web-app-template",
19-
"devDependencies": {
20-
"@devshareacademy/eslint-config": "0.1.1",
21-
"@devshareacademy/prettier-config": "0.0.6",
22-
"@devshareacademy/tsconfig": "0.0.3",
23-
"@eslint/js": "9.32.0",
24-
"auto-changelog": "2.5.0",
25-
"eslint": "9.32.0",
26-
"eslint-config-prettier": "10.1.8",
27-
"eslint-plugin-prettier": "5.5.3",
28-
"globals": "16.3.0",
29-
"prettier": "3.6.2",
30-
"typescript": "5.8.3",
31-
"typescript-eslint": "8.38.0",
32-
"vite": "7.0.6"
33-
},
34-
"resolutions": {},
35-
"prettier": "@devshareacademy/prettier-config",
36-
"volta": {
37-
"node": "20.11.0",
38-
"yarn": "1.22.11",
39-
"pnpm": "8.14.3"
40-
},
41-
"auto-changelog": {
42-
"template": "config/changelog-template.hbs",
43-
"unreleased": true,
44-
"commitLimit": false
45-
}
2+
"name": "@devshareacademy/typescript-web-app-template",
3+
"version": "0.2.2",
4+
"description": "A basic Typescript web app project template that uses Vite.",
5+
"scripts": {
6+
"start": "vite --config config/vite.config.mjs",
7+
"build": "tsc && vite build --config config/vite.config.mjs",
8+
"serve": "vite preview --config config/vite.config.mjs",
9+
"lint": "eslint ./src -c ./config/eslint.config.mjs",
10+
"version": "auto-changelog -p && git add CHANGELOG.md"
11+
},
12+
"author": "scottwestover",
13+
"license": "MIT",
14+
"repository": {
15+
"type": "git",
16+
"url": "https://github.com/devshareacademy/typescript-web-app-template.git"
17+
},
18+
"homepage": "https://github.com/devshareacademy/typescript-web-app-template",
19+
"devDependencies": {
20+
"@devshareacademy/eslint-config": "0.1.1",
21+
"@devshareacademy/prettier-config": "0.0.6",
22+
"@devshareacademy/tsconfig": "0.0.3",
23+
"@eslint/js": "9.32.0",
24+
"auto-changelog": "2.5.0",
25+
"eslint": "9.32.0",
26+
"eslint-config-prettier": "10.1.8",
27+
"eslint-plugin-prettier": "5.5.3",
28+
"globals": "16.3.0",
29+
"prettier": "3.6.2",
30+
"typescript": "5.8.3",
31+
"typescript-eslint": "8.38.0",
32+
"vite": "7.0.6"
33+
},
34+
"resolutions": {},
35+
"prettier": "@devshareacademy/prettier-config",
36+
"volta": {
37+
"node": "22.17.1",
38+
"yarn": "1.22.11",
39+
"pnpm": "8.14.3"
40+
},
41+
"auto-changelog": {
42+
"template": "config/changelog-template.hbs",
43+
"unreleased": true,
44+
"commitLimit": false
45+
}
4646
}

0 commit comments

Comments
 (0)