-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
Multiple //= require statements in JS/CSS in JEKYLL_ENV=development should result in multiple <script>/<link>s, like in Rails #597
Comments
This would be a Sprockets issue as we don't directly provide requires. |
I don't know if what Rails does is part of Sprockets, or custom Rails code wrapping Sprockets to achieve this result. All in all, this issue is meant to be a feature request, not a bug report, so please consider this as an option in the future. Thanks! |
Since Sprockets does all of the |
@envygeeks I don't understand your request. I didn't say anything's broken. This is a feature request. |
Is there a benefit to doing this @Nowaker? |
@envygeeks The three points in |
# 1 isn't an issue Sprockets won't recompile the whole tree (or shouldn't) That's why I asked if there were any better reasons. |
This feature is not on the latest version
jekyll 3.8.5
jekyll-assets: 3.0.12
Request
Cite from Rails documentation
Source.
In development mode, assets are served as separate files in the order they are specified in the manifest file.
This manifest app/assets/javascripts/application.js:
would generate this HTML:
Explanation
The way it's implemented in Rails is best suited for development:
require
s), as each asset is accessed directly, and can re-use the cache when a file has not changed.--incremental
builds in Jekyll when modifyingblah.js
that is//= require
d bymain.js
. Changes to a JavaScript file included with //= require not reflected when using Jekyll's --incremental rebuild #596Thanks for considering this! And thank you for jekyll-assets!
The text was updated successfully, but these errors were encountered: