Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The current trend in Drupal core modules is to place CSS and JS files into their own subdirectories.
Comment | File | Size | Author |
---|---|---|---|
#3 | interdiff.txt | 639 bytes | jessebeach |
#3 | contextual-js-reorg-1913036-3.patch | 43.85 KB | jessebeach |
#2 | contextual_js_reorg-1913036-2.patch | 1.83 KB | Wim Leers |
#1 | contextual-asset-reorg-1913036-1.patch | 21.3 KB | jessebeach |
Comments
Comment #1
jessebeach CreditAttribution: jessebeach commentedThis patch moves the .js file under a js/ directory and the css files under a css/ directory.
No code changes other than file reference paths were made.
Comment #2
Wim LeersThe CSS assets are already in their own directory.
This patch moves the JS assets into its own directory.
Comment #3
jessebeach CreditAttribution: jessebeach commentedOnce small comment update to reflect the new location of
contextual.toolbar.js
.Otherwise the patch looks good. I manually verified the changes on a fresh install.
Comment #4
Wim LeersGood catch!
Comment #5
alexpottCommitted 1454b2e and pushed to 8.x. Thanks!
This patch could have been tons smaller if git is configured with
renames = copies
see https://drupal.org/documentation/git/configurehere is the total patch for me :)
Comment #6
Wim LeersAlex: indeed :) I did that too in #2. Adding the
--find-renames
parameter when diffing works too :)Comment #7
jessebeach CreditAttribution: jessebeach commentedNoted! I made the config changes to my setup.