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

Can't pass resolved paths on Windows to dependencies #30

Open
rootical opened this issue Sep 14, 2016 · 3 comments
Open

Can't pass resolved paths on Windows to dependencies #30

rootical opened this issue Sep 14, 2016 · 3 comments

Comments

@rootical
Copy link

rootical commented Sep 14, 2016

Hello Dears,
Since sassaby parses internally paths, this would not work:

    let sb = new Sassaby(file, {
        dependencies: [
            require.resolve('some-sass-lib')
        ]
    });

require.resolve('some-sass-lib') - will give the exact path taken from main key of the lib.
So the output will be:

  • Unix: node_modules/some-sass-lib/some-sass-file.scss
  • Windows: node_modules\\some-sass-lib\\some-sass-file.scss

So dependencies after parsing paths inside sassaby will not work anymore and raise errors while will be working fine on Unix systems, which is extremely inconvenient and not multi-environmental as I would say.

Could you please adjust your regexps?

@mhdcodes
Copy link

having the same problem here with windows , and sassaby is removing slashes
E:localdev_ubuntuTitaniumsrcscss01-settings_global.scss

@mhdcodes
Copy link

hope this can be fixed soon

@rtrufin
Copy link

rtrufin commented Oct 19, 2017

This should be fixed as part of the functionality added in: PR-24

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

3 participants