Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Matt,
You've probably figured out by now that I'm using Potion on project and extending/modifying it to suit my needs. I know that not everyone will have the same needs I do, but I figured it would be better to submit each of my modifications as pull requests in case you decide some of them are worth integrating with your core project.
This one is a new potion configuration option called output_append
My Use Case
Sometimes, especially during development, I want to process multiple SCSS files into individual CSS files that are then included on different pages of my project individually. So, given the following file structure, I might have 3 pages on a project and each would individually want to include its own specific CSS.
The only way to do that with Potion right now is to setup three individual potions in the configuration, which grows tiresome as I add more pages to the project. Instead, I wanted to be able to have a single potion that would export sass/pages/*.scss to individual CSS files. Setting output = false gets me part of the way there, but the resulting files keep their exact file names, leading to .scss files, not .css files.
My solution: output_append.
This new, optional parameter may be set on any potion, and is simply concatenated to the end of the resulting asset. Thus the following potion is possible:
That would cause every scss file in /sass/pages to be processed into an individual file that would then have .css appended to the resulting asset name, which I could then include individually on any page of my project as required.