Skip to content

Usage with emptyOutDir possible? #7

Description

Same problem posted on vite rollup-plugin-copy, see: vitejs/vite#6686

export default defineConfig({
  build: {
    emptyOutDir: true
  }
  plugins: [
    copy({
      flatten: false,
      targets: [
        { src: "xxx/**/*.(html|svg|png|jpg|gif|json|mp3|eot|ttf|woff)", dest: "dist" }
      ],
    }),
  ]
});

It copies the files, but emptyOutDir removes them then.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions