Skip to content
Gilbert edited this page Oct 4, 2015 · 1 revision

First create the file client/app.scss. This is the main file that will @import all other .scss files you need in your app.

Next, install node-sass-endpoint:

$ npm install node-sass-endpoint --save

and add the following to your server/index.js, before the catch-all route:

var sass = require('node-sass-endpoint');
app.get('/css/app-bundle.css',
  sass.serve('./client/app.scss'));

Lastly, add a <link> tag to your client/public/index.html page:

<head>
  <title>My App</title>
  <link rel="stylesheet" href="/css/app-bundle.css"/>
</head>
Clone this wiki locally