-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Custom javascript files are not copied to the output folder #2091
Comments
Can you be more specific? |
I have custom javascript files in
<script src="/assets/js/my-script.js" defer></script> This worked as javascript files are copied to If I remove the following parameter in exclude:
- "*.js" Is this something we would like to avoid by default? |
The pattern BTW, I tested this pattern locally before commit #2090, and it will copy the JS files in the subdirectories to the output directory. |
I see what you're saying.
Here's what I'm observing though. When I add OK, I will try to find the cause on my end. At the moment I have no idea why it works differently for you. |
Sorry, I made a mistake. When checking the output with Using ruby to check, it's confirmed that # test.rb
puts File.fnmatch('*.js', 'sub/script.js') # output: true
puts File.fnmatch('*.js', 'assets/js/script.js') # output: true It seems that ruby has a different pattern than the shell and needs to be used more carefully. |
Thanks for checking @cotes2020 |
🎉 This issue has been resolved in version 7.2.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Checklist
How did you create the site?
Generated from
chirpy-starter
Describe the bug
Custom javascript files are not copied to the output folder after upgrading to 7.2.1, because changes made in #2090 are promoted to the Chirpy starter template.
Steps To Reproduce
assets
folderExpected Behavior
Custom scripts are copied to the output folder.
Environment
Anything else?
Workaround: edit
_config.yml
as followsThe text was updated successfully, but these errors were encountered: