Skip to content

Commit 5454216

Browse files
authored
Улучшение инфраструктуры для запуска фронтенда (#590)
* implement opening browser while npm run dev * add production build files to eslint ignore and .gitignore
1 parent d3b4ff0 commit 5454216

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,3 +361,4 @@ StyleCop.Cache
361361
.env
362362
swagger-codegen
363363
hwproj.front/static_dist/
364+
hwproj.front/dist/

hwproj.front/eslint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ export default [
1111
ignores: [
1212
"node_modules",
1313
"dist",
14+
"static_dist",
1415
"build/**/*",
1516
"*config.*",
1617
"public",
17-
"src/api/api.ts" // Поскольку этот файл автогенерируется
18+
"src/api/api.ts" // Поскольку этот файл автогенерируем пока
1819
]
1920
},
2021

hwproj.front/vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export default defineConfig({
3636
host: 'localhost',
3737
port: 3000,
3838
protocol: 'wss'
39-
}
39+
},
40+
open: true
4041
},
4142
build: {
4243
outDir: "dist",

0 commit comments

Comments
 (0)