Skip to content

Commit 6ae356e

Browse files
committed
Cleanup after bundling.
1 parent 17c15ef commit 6ae356e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vite.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from 'vite'
22
import Vue from '@vitejs/plugin-vue'
33
import { resolve } from 'path'
4-
// import Delete from 'rollup-plugin-delete'
4+
import Delete from 'rollup-plugin-delete'
55

66
const build = process.env.BUNDLE ? {
77
lib: {
@@ -14,7 +14,7 @@ const build = process.env.BUNDLE ? {
1414
plugins: [
1515
// Rollup also copies the files in the public folder.
1616
// @todo: find a way to prevent adding them at all.
17-
// Delete({ targets: ['dist/*.{ico,png,html}'], hook: 'generateBundle' })
17+
Delete({ targets: ['dist/images', 'dist/*.{ico,png}'], hook: 'generateBundle' })
1818
],
1919
// Make sure to externalize deps that shouldn't be bundled into library.
2020
external: ['vue'],

0 commit comments

Comments
 (0)