-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Is there any good way to import css/less/sass module? #1
Comments
Hey there @ahuigo 👋 Unfortunately CSS modules and equivalents are not an official spec or an implementation in Deno but rather a process in a build step. This goes for browser and Node code as well. In Node we have bundlers like Webpack, Rollup and Parcel which offer this capability. As far as I know there is currently no equivalent for Deno - a symptom of still being in the early stages of the language. I think CSS queries have been raised for Denos bundler, but it is unlikely that it will be supported by the core - denoland/deno#4549 For the time being I’m afraid you will either need to use a hybrid with Node for CSS etc or make do with static CSS. |
Maybe, deno should consider use Snowpack, it is without bundling and very different from Webpack and Rollup. |
Indeed Snowpack is a cool piece of tooling. It is however still built on the Node/NPM. So as with the previously mentioned tooling, it would require a hybride setup to work with Deno. I would recommend reaching out to the Deno community (via Reddit, Discord) or raising this as an issue on the core Deno repo - this repo is just a simple PoC for which non-static CSS was/is out of scope 😋 so will close this issue. If you find a good way to use less/sass/css in Deno then please feel free to update this issue! |
No description provided.
The text was updated successfully, but these errors were encountered: