Skip to content
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

in-place compilation #98

Closed
patricksadowski opened this issue Jul 4, 2022 · 5 comments
Closed

in-place compilation #98

patricksadowski opened this issue Jul 4, 2022 · 5 comments

Comments

@patricksadowski
Copy link

patricksadowski commented Jul 4, 2022

Is your feature request related to a problem? Please describe.
I hoped to move from LibSassBuilder to DartSassBuilder but the latter one seems to be dead. What I like about DartSassBuilder is the in-place compilation of scss files. Css files are located beside scss files. No input or output folder needed.

Describe the solution you'd like
During the build process find all scss files in a project and compile them in-place. Use the directory of the scss file. Simply run scss compilation in folders where scss files are located. This would make configuration of source and destination folder obsolete.

Describe alternatives you've considered
none

Additional context
none

@koenvzeijl
Copy link
Owner

koenvzeijl commented Jul 4, 2022

Hi @patricksadowski , I totally get what you mean. But it's actually optional to use the input and output folders as you can also make use of the ScopedCssFolders and set GenerateScopedCss to true. Let me know if this solves your problem

@patricksadowski
Copy link
Author

My current sasscompiler.json contains

{
    "Arguments": "--no-source-map --style=compressed",
    "ScopedCssFolders": ["."]
}

and it's working. So, the thanks are yours.

Now, I have to copy the configuration to several projects in the same repo. I would like to place the configuration once in root. That would be a great feature: use the configuration up in the directory tree. Even better would be a "install and forget" package for a simple sass compilation use case without configuration 😉

@patricksadowski
Copy link
Author

Shall I file new issues for the mentioned features or does this issue care for the new feature requests?

@koenvzeijl
Copy link
Owner

@patricksadowski We have an install and forget option as it already uses the defaults. But the default looks in the /Styles folder and compiles the files to the wwwroot/css folder. I think this is the most common use case. Do you agree? I understand that using the ScopedCssFolders wildcard is very useful for your project but may cause unwanted files to be generated for other users. Please tell me if I overlook something here.

@patricksadowski
Copy link
Author

@koenvzeijl I agree. We changed some points in our repo so your package fits better.

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