Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raw css imports are not supported #32

Open
gglnx opened this issue Apr 13, 2018 · 1 comment
Open

Raw css imports are not supported #32

gglnx opened this issue Apr 13, 2018 · 1 comment

Comments

@gglnx
Copy link

gglnx commented Apr 13, 2018

Hello,

we're using raw css imports (sass/libsass#754), but sass-extract fails on them, because the custom imported always adds a .scss before trying to import the file.

Error: Can not determine imported file for url 'sanitize.css/sanitize.scss' imported in src/stylesheets/main.scss
    at Object.module.exports.renderSync (node_modules/node-sass/lib/index.js:439:16)
    at extractSync (node_modules/sass-extract/lib/extract.js:171:22)
    at Object.renderSync (node_modules/sass-extract/lib/render.js:46:44)
    at Object.<anonymous> (sass-test.js:7:34)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:427:7)
    at startup (bootstrap_node.js:151:9)
    at bootstrap_node.js:542:3

Thank you!

@bencergazda
Copy link
Contributor

bencergazda commented Sep 11, 2018

@jgranstrom This would be relatively easy to fix, or rather try to find the file according to the original resolve algorithm of Sass. This is described in https://jonathantneal.github.io/sass-import-resolve/#resolve-algorithm, and already implemented in sass-loader's importsToResolve(). I can contribute if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants