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

external-styles-include #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

artreaktor-niks
Copy link
Collaborator

@artreaktor-niks artreaktor-niks commented Apr 25, 2022

Temporary way to include external library styles with linter exclude.

Target to gather all component styles in one place. In this case on the storybook component.
In this temporary way - include CSS file from a library inside a separate file on the storybook side.
Than include this file separately - on storybook, and on Drupal side.
For the linter - added exclusion for the files that have names ending on *_external.css

@@ -2,3 +2,5 @@
to: <%= h.src() %>/<%= h.changeCase.lower(name) %>/.stylelintignore
---
/color/*.css
dist/**/*.css
*_external.css
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's redundant, probably disabling dist/**/*.css will be already enough. Please test

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is because of lint checking file on "Drupal/src" & storybook linter check files of external libraries css.

@artreaktor-niks artreaktor-niks force-pushed the external-styles-include branch from 617a7d1 to c2866ed Compare May 2, 2022 07:42
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

Successfully merging this pull request may close these issues.

2 participants