-
Notifications
You must be signed in to change notification settings - Fork 406
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
transformedAssetTypes is ignored #1339
Comments
Is it possible it is only applied in the |
@renestalder thanks for reporting this topic. It even also seems to me that @JosefBredereck could you think of any valid reason for that? I would expect that the |
Phew, I don't know if this is the correct option. We have some old documentation here in the pattern lab wiki which does not match the patternlab.io website. In my opinion, the functionality should do the same in watch and build mode, so that you don't have different results. |
Somewhere in the |
It's hard to keep track of everything. This issue has been automatically marked as stale because it has not had recent activity, neither from the team nor the community. It will be closed if no further activity occurs. Please consider adding additional info, volunteering to contribute a fix for this issue, or making a further case that this is important to you, the team, and the project as a whole. Thanks! |
I think that I'm nearly done with implementing a solution for this one. |
* fix: transformedAssetTypes is ignored #1339 * chore: we could still use const here * chore: reduced unnecessary slash in the URL * refactor: simplified regex * refactor: simplified regex * refactor: corrected the regex as it was as well targeting .scss in configuring 'css' before
I am using Pattern Lab Node
v5.15.0
onLinux
, with Nodev16
, using aTwig
Edition.Expected Behavior
When using a preprocessor like PostCSS to process CSS files, you want to deactivate the copy task for CSS. To do this, based on the manual, I would set following property in my pattern lab configuration:
Now building pattern lab, the public css folder set in
paths.public.css
should not contain any CSS files.Actual Behavior
transformedAssetTypes
seems to ignore the type "css". It copies all the CSS files as configured inpaths.source.css
topaths.public.css
.As the preprocessor might be faster in compliling, Pattern Lab is also gonna overwrite any previously compiled CSS.
Actually, after testing further, it seems that setting is not applied any file type. I tested it with
.scss
as file type by settingtransformedAssetTypes
to["scss"]
and file is still being copied despite the setting.Steps to Reproduce
paths.source.css
andpaths.public.css
.transformedAssetTypes
to["css"]
.patternlab build --config ./patternlab-config.json
The text was updated successfully, but these errors were encountered: