mirror of
https://github.com/JosunLP/UserScriptProjectTemplate.git
synced 2025-06-21 10:11:07 +00:00

Switching from Webpack to vite, upgrading the version of the logo file and updating dependencies
21 lines
549 B
TypeScript
21 lines
549 B
TypeScript
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"],
|
|
},
|
|
});
|