Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Adding typesyle for styling components #398

Closed
aa6864 opened this issue Sep 14, 2018 · 2 comments
Closed

Adding typesyle for styling components #398

aa6864 opened this issue Sep 14, 2018 · 2 comments

Comments

@aa6864
Copy link

aa6864 commented Sep 14, 2018

I installed typestyle with npm install --save-dev typestyle to add styles in the the Typescript files and the web app in the dev environment is working as expected. However when I run npm run build to generate the minified css file I don't see the style in the file. I'm just wondering if I anyone had a similar experience! Do I need to install a loader for the typestyle as well?

@xaviergonz
Copy link

typestyle is css inside js, it won't generate a css file, it will just generate a class name in runtime and append that css code to a <style> tag in the head (again at runtime)

@aa6864
Copy link
Author

aa6864 commented Oct 9, 2018

Thank you @xaviergonz. That makes sense now.

@aa6864 aa6864 closed this as completed Oct 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants