Skip to content

Instantly share code, notes, and snippets.

@kyletaylored
Created March 4, 2022 16:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyletaylored/754c6df93f536826524d9ff3edf6600e to your computer and use it in GitHub Desktop.
Save kyletaylored/754c6df93f536826524d9ff3edf6600e to your computer and use it in GitHub Desktop.
Add Node build capabilities to composer.json
# Ignore asset build path in theme
# --------------------------------
/web/themes/custom/radix_subtheme/build/
{
"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