DEV Community

Discussion on: Writing a React SSR app in Deno

Collapse
 
ahuigo profile image
ahuigo

Is there any way to import css/less module?

Collapse
 
craigmorten profile image
Craig Morten

Unfortunately CSS Modules etc. aren't there yet with Deno as they generally require a bundler to make them work.

You are able to use static CSS easily, see here for an example of how you can server static CSS.

I've also got a post on how to write a more complex app using static CSS here.

Fingers crossed tooling for things like CSS modules will be developed by the community shortly!

Collapse
 
ije profile image
X.

you can try Aleph.js, a react framework in deno, with built-in css/less support, or import sass with plugin.