build: simplify tiptap build by setting fixed output filename in vite config
This commit is contained in:
parent
e5ce1580e2
commit
cd45ab17de
2
Makefile
2
Makefile
@ -15,8 +15,6 @@ highlight-css:
|
|||||||
build-editor:
|
build-editor:
|
||||||
@echo "Building Tiptap editor..."
|
@echo "Building Tiptap editor..."
|
||||||
@cd libs/tiptap-editor && npm install && npx vite build
|
@cd libs/tiptap-editor && npm install && npx vite build
|
||||||
@mv public/tiptap/editor.iife.js public/tiptap/editor.js 2>/dev/null || true
|
|
||||||
@mv public/tiptap/editor.iife.js.map public/tiptap/editor.js.map 2>/dev/null || true
|
|
||||||
@echo "Tiptap editor built."
|
@echo "Tiptap editor built."
|
||||||
|
|
||||||
dev:
|
dev:
|
||||||
|
|||||||
@ -8,7 +8,7 @@ export default defineConfig({
|
|||||||
lib: {
|
lib: {
|
||||||
entry: resolve(__dirname, 'src/index.ts'),
|
entry: resolve(__dirname, 'src/index.ts'),
|
||||||
name: 'TiptapEditor',
|
name: 'TiptapEditor',
|
||||||
fileName: 'editor',
|
fileName: () => 'editor.js',
|
||||||
formats: ['iife'],
|
formats: ['iife'],
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user