-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support excluding files and directories in static folder #22
Comments
Hi @arihans!
Hm... That's something that is not expected (putting sources and static files in the same directory). Excluding looks like a nice feature. But with the latest version it can be solved with multiple static file paths. Example can be found in in envFilter directory. For the project structure you mentioned configuration could look like this: "staticFiles": [
{
"staticPath": "assets",
"staticOutPath": "assets"
},
{
"staticPath": "utils",
"staticOutPath": "utils"
}
] Regarding other elements from issue:
I've checked and it works perfectly for me with the latest version. Could you provide more info (e.g. what OS, what config, maybe repo with reproduction in that case)?
Yep, |
I am in a similar situation to #20.
I have my index.html file inside the static folder. And I don't want to copy the index.html file, which is processed by parcel and copied to dist. It would be nice to ignore the index.html in the target directory.
I have tried the single file example, and it just gave me
parcel-reporter-static-files-copy missing error
.Steps to Reproduce
src
.Your project structure should look something like this -
.parcelrc
content -main.js
inindex.html
-<script type="module" src="main.js"></script>
npm start
results in some dependency resolution error in browser.The text was updated successfully, but these errors were encountered: