Skip to content

Commit

Permalink
fix: npm run custom.dev run dev server started instead of custom.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienArcellier committed Aug 15, 2024
1 parent ce99061 commit 64b413a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"dev": "npm run -w writer-ui dev",
"storybook": "npm run -w writer-ui storybook",
"storybook.build": "npm run -w writer-ui storybook.build",
"custom.dev": "npm run -w writer-ui dev",
"custom.dev": "npm run -w writer-ui custom.dev",

"cli:test": "pytest tests -o log_cli=true ",
"cli:lint": "mypy ./src/writer --exclude app_templates/* && ruff check",
Expand Down
6 changes: 6 additions & 0 deletions src/ui/vite.config.custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export default defineConfig({
WRITER_LIVE_CCT: JSON.stringify("yes"),
},
publicDir: false,
optimizeDeps: {
esbuildOptions: {
target: "es2022",
},
},
build: {
lib: {
entry: ["./src/custom_components"],
Expand Down Expand Up @@ -46,6 +51,7 @@ export default defineConfig({
},
},
server: {
port: 5174,
proxy: {
"/api": {
target: "http://127.0.0.1:5000",
Expand Down

0 comments on commit 64b413a

Please sign in to comment.