Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add copy builder #266

Closed
pi0 opened this issue May 24, 2023 · 1 comment · Fixed by #389
Closed

add copy builder #266

pi0 opened this issue May 24, 2023 · 1 comment · Fixed by #389
Labels
discussion enhancement New feature or request

Comments

@pi0
Copy link
Member

pi0 commented May 24, 2023

Ref: nuxt/module-builder#63

A builder similar to mkdist but copy them as is without any transforms. (We might support small things like ignore patterns)

@pi0 pi0 mentioned this issue Jul 18, 2023
@pi0 pi0 changed the title Add assets builder add copy builder Jul 18, 2023
@pi0 pi0 added enhancement New feature or request discussion labels Jul 18, 2023
@nekomeowww
Copy link

Any updates on this?

Want to copy some default static assets (fonts, default pure string based templates) that included by my library as default without any transformation and without any import & export abilities.

I currently use this as workaround:

hooks: {
    'build:done': async () => {
      // copy all things under src/assets to dist/assets
      const { copy } = await import('fs-extra')
      await copy('src/assets', 'dist/assets')
    },
  },

Is this the correct way of using it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants