markdalgleish / static-site-generator-webpack-plugin

Minimal, unopinionated static site generator powered by webpack
MIT License
1.61k stars 97 forks source link

CSS preprocessor implementation. #57

Open adamleithp opened 8 years ago

adamleithp commented 8 years ago

Goal: hot reload, compile .scss file and then include it in root.jsx inline.

I've been trying to use loaders and then var css = require('./base.css'); but I get errors. Module not found even if in the same directory. Anyone know how to go about doing this?

KyleAMathews commented 8 years ago

This works out of the box in Gatsby :-) https://github.com/gatsbyjs/gatsby