Created
March 4, 2022 16:08
-
-
Save kyletaylored/754c6df93f536826524d9ff3edf6600e to your computer and use it in GitHub Desktop.
Add Node build capabilities to composer.json
This file contains 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
# Ignore asset build path in theme | |
# -------------------------------- | |
/web/themes/custom/radix_subtheme/build/ |
This file contains 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
{ | |
"require": { | |
"imponeer/composer-yarn-installer": "^1.22", | |
"mariusbuescher/node-composer": "*" | |
} | |
"extra": { | |
"mariusbuescher": { | |
"node-composer": { | |
"node-version": "16.14.0", | |
"yarn-version": "1.22.17" | |
} | |
} | |
} | |
"scripts": { | |
"post-install-cmd": [ | |
"cd web/themes/custom/radix_subtheme; npm install && npm run production" | |
], | |
"post-update-cmd": [ | |
"cd web/themes/custom/radix_subtheme; npm install && npm run production" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment