Created
January 28, 2026 06:38
-
-
Save westonruter/183bd7847539f5d74dc21f4b98b660ec to your computer and use it in GitHub Desktop.
Using symlinks to bypass having to run build:dev in wordpress-develop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Put this file in the root of wordpress-develop and run it instead of `npm run build:dev`. | |
| # Add paths as needed. | |
| set -e | |
| set -x | |
| cd "$(dirname "$0")" | |
| cd src/wp-includes/js | |
| ln -sf ../../js/_enqueues/wp/emoji.js wp-emoji.js | |
| ln -sf ../../js/_enqueues/vendor/twemoji.js twemoji.js | |
| ln -sf ../../js/_enqueues/lib/emoji-loader.js wp-emoji-loader.js | |
| ln -sf ../../js/_enqueues/wp/heartbeat.js heartbeat.js | |
| ln -sf ../../js/_enqueues/lib/auth-check.js wp-auth-check.js | |
| ln -sf ../../../js/_enqueues/vendor/codemirror/fakejshint.js codemirror/fakejshint.js | |
| cd - > /dev/null | |
| cd src/wp-admin/js | |
| ln -sf ../../js/_enqueues/wp/code-editor.js code-editor.js | |
| ln -sf ../../js/_enqueues/lib/nav-menu.js nav-menu.js | |
| ln -sf ../../js/_enqueues/wp/customize/nav-menus.js customize-nav-menus.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment