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

I can set path file source .scss #20

Closed
hoangnamitc opened this issue Oct 28, 2017 · 22 comments
Closed

I can set path file source .scss #20

hoangnamitc opened this issue Oct 28, 2017 · 22 comments

Comments

@hoangnamitc
Copy link

HI !

How to i can set path source file .scss
Instead of compile all file *.scss

thanks !

@ritwickdey
Copy link
Owner

Sorry, I don't get that. Can you give me any specific example?. There is a settings to exclude items, did you try it?

@hoangnamitc
Copy link
Author

Thanks for reply,

I have a file source .scss, I left it in the subdirectory.
how to config to ignore all file in project Exclude my file .scss

because this extension read from file .md building to css :(

@ritwickdey
Copy link
Owner

What do you mean by "this extension read from file .md building to css" ....

this Extension should compile only .sass/.scss file..

Is this compiling .md file?

@hoangnamitc
Copy link
Author

sorry because english not my language,

my mean is how to set path for only one folder for file .scss

not compile all.

thanks very much

@ritwickdey
Copy link
Owner

There is also a include settings, check on the settings documentation.....

@hoangnamitc
Copy link
Author

my setting, but not working

image

@ritwickdey
Copy link
Owner

Nope! Just remove the exclude settings... a give a try. It should work. If it not works, it could be a bug....
Let me know!

@ritwickdey
Copy link
Owner

IncludeItems should include only specific files.

@hoangnamitc
Copy link
Author

image
image
image

@hoangnamitc
Copy link
Author

my settings change:
image

@ritwickdey
Copy link
Owner

I see!! I think this settings has a bug... Sorry for that.

Can you show me your file/folder structure and what is your OS?

@hoangnamitc
Copy link
Author

hoangnamitc commented Oct 29, 2017

MyFolder:
image

My OS 64bit :

image

@ritwickdey
Copy link
Owner

Workaround for now :

If your sass file does not contain much sass file (not partial sass) ..... just try exclude one by one ... (give full path from workspace in exclude settings)

@hoangnamitc
Copy link
Author

Thanks. I wait next update 🔢

please add feature set path source for compile 👍

@ritwickdey
Copy link
Owner

ritwickdey commented Oct 29, 2017

Hi, @hoangnamitc ... A HOT WORKAROUND for you 😄

I found the bug in the code.

"liveSassCompile.settings.includeItems" : [
   "application/templates/sass/mysass.scss",
    "xyz/foo/blaa/blaa/anything"
] 

@ritwickdey
Copy link
Owner

this should work.. Try it and let me know

@hoangnamitc
Copy link
Author

image

image

Compile file .md

image

@ritwickdey
Copy link
Owner

do you set this settings ?

"liveSassCompile.settings.includeItems" : [
   "application/templates/sass/mysass.scss",
    "xyz/foo/blaa/blaa/anything"
] 

it should work. [It is working on my matchine]

alternatively

"liveSassCompile.settings.includeItems" : [
   "application/templates/sass/*.scss",
    "xyz/foo/blaa/blaa/anything"
]

@hoangnamitc
Copy link
Author

hoangnamitc commented Oct 29, 2017

HI,
-=============================================
When:

"liveSassCompile.settings.includeItems" : [
   "application/templates/sass/*.scss"
]

===>Error
-=============================================
When:

"liveSassCompile.settings.includeItems" : [
   "application/templates/sass/*.scss",
    "xyz/foo/blaa/blaa/anything"
]

===>Working
-=============================================
what is: "xyz/foo/blaa/blaa/anything" ?

tks!

@ritwickdey
Copy link
Owner

ritwickdey commented Oct 29, 2017

yep! if array size is 1, there is a bug. 😄

so, just type anything for now.....

ritwickdey added a commit that referenced this issue Oct 30, 2017
ritwickdey added a commit that referenced this issue Oct 31, 2017
@ritwickdey
Copy link
Owner

This issue is fixed with v1.1.0 update.

@ganesh-deshmukh
Copy link

ganesh-deshmukh commented Aug 5, 2018

I have same kind of doubt, but I could not solve it by reading above comments.
I have posted it here.

I wanted to set output folder to complied .css files and also set input folder for .scss files.
waiting for reply.

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