We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There are times when we need to exclude files from compilation. Here's some examples:
/admin
+page.server.ts
At the moment, these files have to be manually removed before the build then put back afterwards. It's cumbersome.
In svelte.config.js, define a function that acts as a filter to source code files so we can ignore some files.
svelte.config.js
Right now, if you want to ignore some files, you have to straight up delete them.
find src/routes -name '+*.server.*' -delete pnpm build http-server ./build git checkout -- 'src/routes/+*.server.*'
would make my life easier
config.kit.files.routes
The text was updated successfully, but these errors were encountered:
A more general solution would probably be some sort of plugin system where people can influence routes, and that could be done through that.
Sorry, something went wrong.
load
No branches or pull requests
Describe the problem
There are times when we need to exclude files from compilation. Here's some examples:
/admin
, but it might have them in the SSR build+page.server.ts
At the moment, these files have to be manually removed before the build then put back afterwards. It's cumbersome.
Describe the proposed solution
In
svelte.config.js
, define a function that acts as a filter to source code files so we can ignore some files.Alternatives considered
Right now, if you want to ignore some files, you have to straight up delete them.
Importance
would make my life easier
Additional Information
+page.server.ts
page crashes static builds #10332config.kit.files.routes
to be an array of directories #6031 (comment)The text was updated successfully, but these errors were encountered: