We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
First create the file client/app.scss. This is the main file that will @import all other .scss files you need in your app.
client/app.scss
@import
.scss
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:
server/index.js
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:
<link>
client/public/index.html
<head> <title>My App</title> <link rel="stylesheet" href="/css/app-bundle.css"/> </head>