Skip to content

Commit

Permalink
Merge pull request #530 from Sapphire64/patch-1
Browse files Browse the repository at this point in the history
Describing how to install Susy in webpack env
  • Loading branch information
mirisuzanne committed Sep 28, 2015
2 parents 8f2ec0c + 51122dd commit e63c77c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,37 @@ Again, assuming you've already installed Susy,
it will now be added to the project.


Webpack and npm
------------

Install using npm:

.. code-block:: bash
npm install susy --save
Make sure you have `sass-loader <https://github.com/jtangelder/sass-loader>`_ installed and enabled in your `webpack` configuration:

.. code-block:: js
// webpack.config.js
loaders: [
{
test: /\.scss$/,
loader: 'style!css!sass'
}
]
Start using Susy:

.. code-block:: sass
/* app.scss */
@import "node_modules/susy/sass/susy";
Manual Start
------------

Expand Down

0 comments on commit e63c77c

Please sign in to comment.