Skip to content

SASS: Problem with relative path in Windows #8

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

Closed
ruriba opened this issue Jun 6, 2018 · 1 comment
Closed

SASS: Problem with relative path in Windows #8

ruriba opened this issue Jun 6, 2018 · 1 comment

Comments

@ruriba
Copy link

ruriba commented Jun 6, 2018

There is a problem compiling the client from Windows, causing problems with the relative SASS paths. I've replaced the backslashes on the routes and apparently that solves the problem.

/gulp-task/compiler.js

~line 17

const relativePath = path.relative(
    path.dirname(filePath),
    path.resolve(dirs.srcClient, 'style/global.scss')
).replace(/\\/g,'/'); // Replace backslashes with forward slashes
@klarkc
Copy link
Contributor

klarkc commented Jun 6, 2018

Thanks for contribution, please report more windows bugs if you find something else. 👍

@klarkc klarkc closed this as completed in b721305 Jun 6, 2018
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