Skip to content

Commit

Permalink
Change javascript build from webpack to vite JeringTech#160
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Krause committed Jul 26, 2023
1 parent 21e0be4 commit 9d41b30
Show file tree
Hide file tree
Showing 5 changed files with 192 additions and 930 deletions.
6 changes: 2 additions & 4 deletions src/NodeJS/Javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
"private": true,
"type": "module",
"scripts": {
"build": "echo ------ Yarn Install ------ && yarn install && echo ------ Webpack Compile ------ && webpack"
"build": "echo ------ Yarn Install ------ && yarn install && echo ------ Vite Compile ------ && vite build"
},
"dependencies": {
"@types/node": "^18.11.18",
"ts-loader": "^9.2.6",
"typescript": "^4.9.4",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
"vite": "^4.4.7"
}
}
8 changes: 8 additions & 0 deletions src/NodeJS/Javascript/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from "vite";

export default defineConfig({
build: {
emptyOutDir: false,
ssr: true,
},
});
35 changes: 0 additions & 35 deletions src/NodeJS/Javascript/webpack.config.js

This file was deleted.

Loading

0 comments on commit 9d41b30

Please sign in to comment.