You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to compile a style.min.css from style.scss when _header.scss is saved.
If i write this on the first line of _header.scss it works as expected: // main: ../../style.scss
However if i write this line in the .vscode/settings.json file it returns an error because the file path is wrong: "main": "../../style.scss"
This generates the following error on _header.scss save:
Cannot open file <path_to_project>/themes/style.scss
It seems like it goes two levels up from the style.scss file insted of the _header.scss file. If i change it to "main": "style.scss" i get the following error:
Cannot open file <path_to_project>/themes/theme-name/css/scss/header/style.scss
Am i doing something wrong here or is it a bug?
My complete .vscode/settings.json file is like this:
I have also tried to use the ${workspaceRoot} variable, but that would require for me to update the settings file with each project name and theme name for every project, it would be better if i could use a relative path. I have also tried to use the ${workspaceFolder} variable as mentioned in the docs here: https://github.com/mrcrowl/vscode-easy-less but that doesn't seem to be supported in this extension, but that still wouldn't be ideal as i would still have to change path for each settings.json file per project.
The text was updated successfully, but these errors were encountered:
I just tried out this extension and I am having some issues targeting the correct main file in settings.json.
I have a folder structure like this:
I want to compile a style.min.css from style.scss when _header.scss is saved.
If i write this on the first line of _header.scss it works as expected:
// main: ../../style.scss
However if i write this line in the .vscode/settings.json file it returns an error because the file path is wrong:
"main": "../../style.scss"
This generates the following error on _header.scss save:
Cannot open file <path_to_project>/themes/style.scss
It seems like it goes two levels up from the style.scss file insted of the _header.scss file. If i change it to
"main": "style.scss"
i get the following error:Cannot open file <path_to_project>/themes/theme-name/css/scss/header/style.scss
Am i doing something wrong here or is it a bug?
My complete .vscode/settings.json file is like this:
and global settings.json file:
I have also tried to use the ${workspaceRoot} variable, but that would require for me to update the settings file with each project name and theme name for every project, it would be better if i could use a relative path. I have also tried to use the ${workspaceFolder} variable as mentioned in the docs here: https://github.com/mrcrowl/vscode-easy-less but that doesn't seem to be supported in this extension, but that still wouldn't be ideal as i would still have to change path for each settings.json file per project.
The text was updated successfully, but these errors were encountered: