Frontend code for middlebury_theme
- Node ^20.19.4
To check if you already have node installed, open terminal and use the following command:
node -vClone the repo to a local machine, using your preferred method.
SAW is not used to work in this repo due to conflict with SAW and how node works.
Open terminal and change directory into the cloned local repo.
Install node modules:
npm installYou may be asked to fix dependencies, go ahead and do that.
Run local browser sync server and watch files:
npm startnpm run buildFor development on saw.middlebury.edu, you can build assets to a desired Drupal theme directory by creating an .env file in the root directory of this repo.
THEME_DIR="../your/path/to/d8/web/themes/custom/middlebury_theme/"
Now when you run npm run build or npm run dev, assets will be output to that directory.