Skip to content

Refactor webpack rule test to support 'postcss' as a lang/file-extension#40

Open
enjibby wants to merge 1 commit intostorybook-eol:masterfrom
enjibby:support-lang-postcss
Open

Refactor webpack rule test to support 'postcss' as a lang/file-extension#40
enjibby wants to merge 1 commit intostorybook-eol:masterfrom
enjibby:support-lang-postcss

Conversation

@enjibby
Copy link
Copy Markdown

@enjibby enjibby commented Oct 7, 2022

Laravel Mix and VSCode's Vetur plugin are quite at odds with how to specify that you wish to use PostCSS in your VueJS single-file component. I have used some custom configuration in my project to support <style lang="postcss"> for my NPM builds, but Storybook (in particular, this postcss addon) does not yet recognise this customisation.

I have updated the css rule test to allow a developer to specify <style lang="postcss"> in their single-file components to ensure Vetur and linting tools correctly recognise the code, while still supporting the same compilation when using the default <style> element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant