-
Notifications
You must be signed in to change notification settings - Fork 29
Include .css to build #5
Comments
I am not sure if I understand, but have you used 'prepublish' task? It should do the job. |
Im having trouble with this as well. Ive tried running the 'prepublish' task. I can see the js files in the dist folder but no css. Many Thanks. |
Hi, I think I misunderstood it previously. The
or just
I am not sure if this should land in this package. I don't want to include everything here. This should be a simple boilerplate. On the other hand most of the packages uses some kind of css files. |
Thanks Julian, thats very helpful. Ive got that working now. I understand your dilemma though, as developers may use direct css or various css preprocessors etc. Maybe these issue comments are enough for developers to find this bit of information. Cheers, |
Yes, this is what is my main concern :) I guess I'll leave the link in the readme file. |
Hi |
You need to run prepublish task (it should also run when you publish your package on npm). Then you need to publish the package on npm |
I'll close this one for now. But feel free to open another one, more specific. Also regarding the main topic, I think the description and example is enough. Everyone can use different tools for handling css. |
Hi. I have a React component that import a .css and I would want to know how to include that file into my dist folder, because the file is not event moved.
Also I want to know how to already import the css into my js file to avoid the error dist/styles.css Unexpected token when my module is requested.
Thank you for your help.
The text was updated successfully, but these errors were encountered: