From 427fa5e97dbd8bdc64508ad427efe7af682dbbd8 Mon Sep 17 00:00:00 2001 From: Anton Malofeev Date: Tue, 2 Mar 2021 18:58:48 +0300 Subject: [PATCH] chore: public removed and example removed from dist --- {public => example}/favicon.ico | Bin vite.config.ts | 9 ++++----- 2 files changed, 4 insertions(+), 5 deletions(-) rename {public => example}/favicon.ico (100%) diff --git a/public/favicon.ico b/example/favicon.ico similarity index 100% rename from public/favicon.ico rename to example/favicon.ico diff --git a/vite.config.ts b/vite.config.ts index 1758978..0375b1a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,12 +1,11 @@ import vue from '@vitejs/plugin-vue' import vueJsx from '@vitejs/plugin-vue-jsx' import path from 'path' -import copy from 'rollup-plugin-copy' import ts from 'rollup-plugin-typescript2' import { defineConfig } from 'vite' -const copyPlugin = copy({ - targets: [{ src: 'example/**/*', dest: 'dist/example' }], -}) +// const copyPlugin = copy({ +// targets: [{ src: 'example/**/*', dest: 'dist/example' }], +// }) const tsPlugin = ts({ tsconfig: path.resolve(__dirname, 'tsconfig.json'), tsconfigOverride: { @@ -47,7 +46,7 @@ export default defineConfig({ // make sure to externalize deps that shouldn't be bundled // into your library external: ['vue'], - plugins: [tsPlugin, copyPlugin], + plugins: [tsPlugin], output: { dir: './dist', // Provide global variables to use in the UMD build