Skip to content

Files

Latest commit

92be5bf · Jan 31, 2019

History

History
14 lines (10 loc) · 548 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 548 Bytes

nextjs-scss-router-express

Boilerplate for NextJS separating CSS from components (avoids CSS-in-JS) and using Express-style routes. All the benefits of NextJS but separates styles from logic.

SCSS entrypoint is main.scss. Add routes in routes.js. Express entrypoint in server.js.

Dev

To quickly set up, use Yarn (npm install -g yarn), yarn install. Then yarn dev. image

Prod

For production: yarn build, yarn start.