mirror of
https://github.com/JosunLP/UserScriptProjectTemplate.git
synced 2025-10-14 17:10:11 +00:00
⬆️ Upgrading Project
Switching from Webpack to vite, upgrading the version of the logo file and updating dependencies
This commit is contained in:
parent
d63a0cf44b
commit
8089771d41
10 changed files with 1189 additions and 312 deletions
21
vite.config.ts
Normal file
21
vite.config.ts
Normal 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"],
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue