Skip to content

How to keep the folder structure #182

Closed Answered by glenn2223
eazancot asked this question in Q&A
Discussion options

You must be logged in to vote

You want to take a look at savePathSegmentKeys and savePathReplaceSegmentsWith in the format setting (touched on in "save path notes")

Basically, any key that is found is replaced with the replacement value. The key is restricted to matching single folders - it's not a string replacement - so you can't have a key that's Folder 1/Folder2.

You'd want your settings to start with this instead:

{
    "liveSassCompile.settings.formats":[
        {
           "format": "expanded",
           "extensionName": ".css",
           "savePathSegmentKeys": [ "sass" ],
           "savePathReplaceSegmentsWith": "css"
       },
       {
           "format": "compressed",
           "extensionName": ".min.…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@eazancot
Comment options

Answer selected by glenn2223
Comment options

You must be logged in to vote
3 replies
@glenn2223
Comment options

@guisfons
Comment options

@glenn2223
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants