-
Notifications
You must be signed in to change notification settings - Fork 25
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
provide option to copy along static files #63
Comments
Does it works if you put it inside |
Doing this worked for me nuxt.hooks.hook('nitro:config', (nitroConfig) => {
nitroConfig.publicAssets = nitroConfig.publicAssets || []
nitroConfig.publicAssets.push({ dir: resolve('./runtime/public'), maxAge: 31536000 })
}) |
@harlan-zw Nice. That would be a nice kit utility candidate. |
@pi0:
Not really. One could work around that by using non-ts extension (such as
All and all, that's not really an option. We need a way to copy over certain files verbatim. Suggestions:
|
I think you still can use a top level directory and include it in package.json files without transforms (dist and src having same relative path) but sure supporting an Upstream: unjs/unbuild#266 |
Sometimes you want to copy static files (in my case a ts file that servers as the source for
addTemplate
). This currently doesn't seem to be possible.The text was updated successfully, but these errors were encountered: