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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃 "exportPlatform" doesn't apply filters #998

Open
tgelu opened this issue Jul 21, 2023 · 0 comments
Open

馃 "exportPlatform" doesn't apply filters #998

tgelu opened this issue Jul 21, 2023 · 0 comments

Comments

@tgelu
Copy link

tgelu commented Jul 21, 2023

I have a config for a platform which looks like this:

            platforms: {
              css: {
                transforms: CSS_TRANSFORMS,
                files: [
                  {
                    filter: (token) => token.isSource,
                    format: 'css/variables',
                    options: {
                      outputReferences: true,
                    },
                  },
                ],
              },
            },

If I try to use the dictionary using this config and call .exportPlatform('css') I get everything as expected except that the filter doesn't seem to take effect. This is not true if I call buildPlatform('css') which writes to file.

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

1 participant