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

Application styles module system #51

Open
Neketek opened this issue Mar 23, 2018 · 0 comments
Open

Application styles module system #51

Neketek opened this issue Mar 23, 2018 · 0 comments
Assignees
Labels
front-end management question Further information is requested

Comments

@Neketek
Copy link
Owner

Neketek commented Mar 23, 2018

Webpack provides styles name spacing which we can use to create style modules for separate components and components groups which will not interfere with global styles. This is extremely useful feature because it allows proper code separation, especially in styles.

To use such system we need to define general core styles which we can import directly to application root.
In case of specific components styling we should import css module directly to root of the component which we want to customize, because in such case webpack creates namespace for that css module.

But I need to check this functionality, because I have a feeling, that something may not work because of the text extract webpack plugin which extracts css into separate bundle when production config was used.

@Neketek Neketek self-assigned this Mar 23, 2018
@Neketek Neketek added front-end management question Further information is requested labels Mar 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front-end management question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant