Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

savePath 输出的css不在指定的文件夹下 #14

Open
babyzhu opened this issue Sep 22, 2017 · 12 comments
Open

savePath 输出的css不在指定的文件夹下 #14

babyzhu opened this issue Sep 22, 2017 · 12 comments

Comments

@babyzhu
Copy link

babyzhu commented Sep 22, 2017

.vscode/settings.json
{
"liveSassCompile.settings.savePath": "/css",
"liveSassCompile.settings.format": "compact",
"liveSassCompile.settings.extensionName" : ".css",
"liveSassCompile.settings.generateMap" : false
}
输出:
Compiling Sass/Scss Files:
e:\htdocs\study\Sass\sass\style.scss

Generated :
e:\htdocs\study\Sass\sass\style.css
e:\htdocs\study\Sass\sass\style.css.map

一直输出在sass文件夹里。而没有输出到我指定的css文件里。

这是怎么回事呢?

@ritwickdey
Copy link
Owner

Thanks for the issue report.
What is the root of your project? Is this e:\htdocs\study\Sass\sass\ ?

@ritwickdey
Copy link
Owner

I think, you didn't save properly... Save the setting file property and let me know it works for you or not.

@babyzhu
Copy link
Author

babyzhu commented Sep 22, 2017

project e:\htdocs\study\Sass
.scss files e:\htdocs\study\Sass\sass
I have saved it

@ritwickdey ritwickdey added the bug label Sep 22, 2017
@ritwickdey
Copy link
Owner

yep! I got that. It is bug (Thanks again, for the report).

There is something happening due to Sass\sass -> same name.
I'm now too busy (EXAM TIME) to debug it.

A Workaround For Now :
Change the name Sass to SassProject or whatever you want. (i.e. SassProject\Sass)

@babyzhu
Copy link
Author

babyzhu commented Sep 22, 2017

Thanks ,but no
output:

Compiling Sass/Scss Files:
e:\htdocs\study\Sassdemo\sassok\style.scss

Generated :
e:\htdocs\study\Sassdemo\sassok\style.css
e:\htdocs\study\Sassdemo\sassok\style.css.map

me set savepath "liveSassCompile.settings.savePath": "/css"

@ritwickdey
Copy link
Owner

Can you send me the folder structure by zipping folder (don't add any sensitive content) ?

@babyzhu
Copy link
Author

babyzhu commented Sep 22, 2017

sorry , I will only do push there
https://github.com/babyzhu/Sasstest

@babyzhu
Copy link
Author

babyzhu commented Sep 22, 2017

Thank you ,your answer;I'm still new to GitHub

@ritwickdey
Copy link
Owner

Look, it is working... dist/css/ folder created automatically & generated css are stored into that.

[MAKE SURE THAT .vscode FOLDER SHOULD BE IN ROOT OF WORKING-SPACE]

image

@babyzhu
Copy link
Author

babyzhu commented Sep 23, 2017

Thanks again,The trial was successful.

@ritwickdey
Copy link
Owner

Does it work? if yes, please now try Sass\sass\ (as before) ? Does that work too?

@xpharsh
Copy link

xpharsh commented Oct 23, 2017

This is my folder structure.

/
/==>app
/==>app==>web
/==>app==>web==>sass
/==>app==>web==>css

How can i extract the .css file in CSS folder dynamically when my structure change?

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

No branches or pull requests

3 participants