⬆️ Upgrading Project

Switching from Webpack to vite, upgrading the version of the logo file and updating dependencies
This commit is contained in:
Jonas Pfalzgraf 2024-06-02 20:50:22 +02:00
parent d63a0cf44b
commit 8089771d41
10 changed files with 1189 additions and 312 deletions

21
vite.config.ts Normal file
View file

@ -0,0 +1,21 @@
import { defineConfig } from "vite";
import { resolve } from "path";
import tsconfigPaths from "vite-tsconfig-paths";
import pkgjsn from "./package.json";
export default defineConfig({
build: {
rollupOptions: {
input: resolve(__dirname, "src/index.ts"),
output: {
entryFileNames: `${pkgjsn.name}.user.js`,
dir: resolve(__dirname, "dist"),
},
},
sourcemap: "inline", // Equivalent to 'inline-source-map'
},
plugins: [tsconfigPaths()],
resolve: {
extensions: [".tsx", ".ts", ".js"],
},
});