kitze / custom-react-scripts

[DEPRECATED, use customize-cra] Allow custom config for create-react-app without ejecting

Home Page:https://custom-react-scripts.netlify.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SCSS does not respect NODE_PATH variable

d07RiV opened this issue · comments

We can specify NODE_PATH variable in the .env file to add additional source directories - specifically, setting it to project root allows us to use absolute paths.

However, this does not work with includes in SASS (and probably other CSS processors):

Module build failed:
@import 'common.scss';
^
      File to import not found or unreadable: common.scss.

With regular CRA we can pass the path to CSS processor directly (in package.json), but custom scripts removes that option.