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

.nitroignore support #843

Closed
1 task
motea927 opened this issue Jan 16, 2023 · 2 comments · Fixed by #945 or #1430
Closed
1 task

.nitroignore support #843

motea927 opened this issue Jan 16, 2023 · 2 comments · Fixed by #945 or #1430
Labels
enhancement New feature or request

Comments

@motea927
Copy link
Contributor

motea927 commented Jan 16, 2023

Describe the feature

Sometimes, we need to ignore some public folder's file (not all files) in production,
But currently only noPublicDir option,
I use Nuxt hooks close to remove some file after the build,
But it may very slow when use compressPublicAssets,
Because it need copy -> compress -> remove,
Hope can adding ignore some public folder's file option.

Additional information

  • Would you be willing to help implement this feature?
@pi0 pi0 changed the title Adding ignore copyPublicAssets rule support ignore public assets with a pattern Jan 16, 2023
@pi0 pi0 added enhancement New feature or request and removed pending triage labels Jan 16, 2023
@pi0
Copy link
Member

pi0 commented Jan 16, 2023

We could support something similar to nuxt ignore option for nitro.

@asbermudez
Copy link

I am struggling with this issue, but for different reason. The current behavior does not allow you to have .spec files in the same folder as middleware/routes because they get bundled automatically and they break.
Having a .nuxtignore-like (.nitroignore?) option would be great, as keeping the spec files separated does not allow a quick overview of which files are untested.

@Hebilicious Hebilicious changed the title support ignore public assets with a pattern .nuxtignore support Jun 30, 2023
@Hebilicious Hebilicious changed the title .nuxtignore support .nitrognore support Jun 30, 2023
@Hebilicious Hebilicious changed the title .nitrognore support .nitroignore support Jun 30, 2023
@pi0 pi0 closed this as completed in #1430 Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants