Closed
Description
I am migrating an existing, server-rendered front-end to a React app. Woo! 🎉
It's my first pure javascript front-end, so I'm a little rusty with things like webpack. I need to bring over Bourbon and Neat which I previously setup in Brunch, so I understand the necessity for include paths etc.
After ejecting, I made the following modifications..
package.json
"devDependencies": {
...
"bourbon": "^4.2.7",
"bourbon-neat": "^1.8.0",
...
}
config/paths.js
// config after eject: we're in ./config/
module.exports = {
...
appSrc: resolveApp('src'),
bourbon: require("bourbon").includePaths,
bourbonNeat: require("bourbon-neat").includePaths,
...
};
config/webpack.config.dev.js (after also installing node-sass
which is working great)
// SASS compatibility!
{
test: /\.scss/,
include: [
paths.bourbon,
paths.bourbonNeat,
paths.appSrc
],
loaders: ["style", "css", "sass"]
},
After this, it's my understanding that simply @import "bourbon"
from App.scss
should work, but I'm getting.
Failed to compile.
Error in ./src/App.scss
Module build failed:
@import "bourbon";
^
File to import not found or unreadable: bourbon
Parent style sheet: stdin
Does anyone see where I might be going wrong?
Metadata
Metadata
Assignees
Labels
No labels