cookiecutter-django/docs/live-reloading-and-sass-compilation.rst

25 lines
791 B
ReStructuredText
Raw Normal View History

2018-03-09 21:17:56 +03:00
Sass Compilation & Live Reloading
=================================
2015-09-18 20:20:48 +03:00
If you'd like to take advantage of live reloading and Sass / Compass CSS compilation you can do so with a little bit of prep work.
Make sure that nodejs_ is installed. Then in the project root run::
$ npm install
.. _nodejs: http://nodejs.org/download/
If you don't already have it, install `compass` (doesn't hurt if you run this command twice)::
gem install compass
Now you just need::
$ npm run dev
2015-09-18 20:20:48 +03:00
The base app will now run as it would with the usual ``manage.py runserver`` but with live reloading and Sass compilation enabled.
To get live reloading to work you'll probably need to install an `appropriate browser extension`_
2017-07-31 16:57:33 +03:00
.. _appropriate browser extension: http://livereload.com/extensions/