You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way it's implemented in Rails is best suited for development:
Fast reloads - no need to compile the whole tree (SCSS + its all nested requires), as each asset is accessed directly, and can re-use the cache when a file has not changed.
Convenient in development - no need for sourcemaps when working on direct source code.
Thanks for considering this! And thank you for jekyll-assets!
The text was updated successfully, but these errors were encountered:
Nowaker
changed the title
Multuple //= require statements in JS/CSS in JEKYLL_ENV=development should result in multiple <script>/<link>s, like in Rails
Multiple //= require statements in JS/CSS in JEKYLL_ENV=development should result in multiple <script>/<link>s, like in Rails
Jun 10, 2019
Since Sprockets does all of the //= logic on our behalf the request would have to go through them, Rails would indeed support it through them so you'll have to provide more debug logs to show how it's broken and then I can talk with Scheems and see what's going on.
# 1 isn't an issue Sprockets won't recompile the whole tree (or shouldn't)
# 2 is only mitigated in certain circumstances (and only for Pure JS that isn't transpiled, or CSS)
# 3 is a whole other ticket
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: