0.4.0 • Published 2 years ago

vite-copy-plugin v0.4.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

vite-copy-plugin

试了几个资源复制插件,不是没用就是不合适,于是便有了此插件

安装

npm i vite-copy-plugin

使用

import CopyPlugin from "vite-copy-plugin";

// vite 配置
export default defineConfig({
  plugins: [
    CopyPlugin([
      // 目录复制
      {from: 'src/static', to: 'dist/static'},
      // 文件复制到目录(空及取vite配置的build.outDir 默认 dist)
      {from: 'src/static/style.css', to: ''}, 
      // 文件复制文件
      {from: 'src/static/style.css', to: 'dist/index.css'}, 
    ])
  ],
});
0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago