-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Build fails with multiple source globs #9713
Comments
@mischnic There's no error with Enabling |
I find another way to resolve the building script: {
"devDependencies": {
"glob": "^11.0.0",
"parcel": "^2.12.0"
},
"scripts": {
"build": "glob public/**/*.html -c \"parcel build\" -- --public-url=."
}
} but it's not a good idea for developing to run multiple watching servers at the same time. |
I think this is fixed by #9901 |
🐛 bug report
Building with the new (in canary) feature of package.json source glob patterns breaks in some conditions with custom file types.
🎛 Configuration (.babelrc, package.json, cli command)
parcel@2.0.0-canary.1591, see Code Sample for full repro script.
🤔 Expected Behavior
npx parcel build
succeeds.😯 Current Behavior
💁 Possible Solution
It seems the multiple source logic from package.json is buggy.
npx parcel build *.html *.tmpl
works."source": ["*.{tmpl.html}"]
worksb.tmpl
works-- building one HTML and one TMPL file.🔦 Context
I'm using parcel to process HTML templates for another tool to render.
💻 Code Sample
tiny repro script:
🌍 Your Environment
The text was updated successfully, but these errors were encountered: