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:
|
||||
@echo "Building Tiptap editor..."
|
||||
@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."
|
||||
|
||||
dev:
|
||||
|
||||
@ -8,7 +8,7 @@ export default defineConfig({
|
||||
lib: {
|
||||
entry: resolve(__dirname, 'src/index.ts'),
|
||||
name: 'TiptapEditor',
|
||||
fileName: 'editor',
|
||||
fileName: () => 'editor.js',
|
||||
formats: ['iife'],
|
||||
},
|
||||
rollupOptions: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user