ignore-styles
ignore-styles copied to clipboard
How to ignore style.scss?modules
Using babel@7
and ignore-styles@5
, i'm getting the following error when trying to import a file named style.scss?modules
:
Error: Cannot find module './style.scss?modules'.
The following did not help:
require('ignore-styles').default([
'.sass',
'.scss',
'.scss?modules',
]);
Thanks in advance!
I am currently having the exact same issue Error: Cannot find module './styles.scss'
. Though I've got the below code
import register from "ignore-styles";
register([".sass", ".scss"]);