mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 00:32:35 +10:00
add emptyOutDir: true to vite.config.ts
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
import { nxViteTsPaths } from "@nx/vite/plugins/nx-tsconfig-paths.plugin";
|
||||
import react from "@vitejs/plugin-react-swc";
|
||||
import * as path from "path";
|
||||
import { defineConfig, splitVendorChunkPlugin } from "vite";
|
||||
import { defineConfig } from "vite";
|
||||
import dts from "vite-plugin-dts";
|
||||
|
||||
export default defineConfig({
|
||||
@ -12,7 +12,6 @@ export default defineConfig({
|
||||
plugins: [
|
||||
react(),
|
||||
nxViteTsPaths(),
|
||||
splitVendorChunkPlugin(),
|
||||
dts({
|
||||
entryRoot: "src",
|
||||
tsconfigPath: path.join(__dirname, "tsconfig.lib.json"),
|
||||
@ -20,6 +19,7 @@ export default defineConfig({
|
||||
],
|
||||
|
||||
build: {
|
||||
emptyOutDir: true,
|
||||
lib: {
|
||||
entry: "src/index.ts",
|
||||
name: "hooks",
|
||||
|
||||
Reference in New Issue
Block a user