Prerequisites: Node.js and Ruby
-
Apache Configuration
<VirtualHost *> ServerName zachleat.localhost DocumentRoot "/PATH_TO_SITE/" Alias /web/ /PATH_TO_SITE/web/_site/ </virtualHost>
-
Add to
/etc/hosts
127.0.0.1 zachleat.localhost
-
gem install sass
-
npm install
-
grunt
grunt watch
- Open
http://zachleat.localhost/
To install new local npm packages, use npm install PACKAGE_NAME --save-dev
grunt deploy
The deploy
task requires zopfli
, which can be installed using:
brew install zopfli