-
Notifications
You must be signed in to change notification settings - Fork 103
Possibility to use scoped styles #34
Comments
Hi, thanks for the compliment :) In terms of scoped styles, I have used CSS modules in a React app with PostCSS and Webpack. It should fit nicely and provide what is needed. It won't be the same style as There is a nice article on it here https://medium.com/@kswanie21/css-modules-sass-in-create-react-app-37c3152de9 Happy to investigate or leave it up to you to create a PR? |
Oh thanks, will look into it! |
I used something old style...
and in my component's outer tag-
Is this good ?? |
I have created a spike repo to show how it could work with this template - ducksoupdev/vue-webpack-typescript-css-modules@f4c57e6...a406361 If this is what you are looking for @joostblok I can add it to the template? |
See discussion at css-modules/css-modules#65. The above repo is an implementation that contains two loader configurations for |
Hi, I used ducksoupdev/vue-webpack-typescript-css-modules@f4c57e6...a406361 |
Hey, first of all awesome work on this template!
I was wondering if there will be support for scoped styles in the future?
Because
*.vue
files already natively support<style scoped src="./nameOfComponent.scss"></style>
.I mean I love the way the
import "./nameOfComponent.scss"
works but maybe add styles as a component parameter just like template.Proposed idea:
or this way
I don't know if this is at all feasible or if there's already a workaround that doesn't involve switching to vue files.
The text was updated successfully, but these errors were encountered: