Skip to content
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

Closed
ahuigo opened this issue Jun 20, 2020 · 3 comments
Closed

Is there any good way to import css/less/sass module? #1

ahuigo opened this issue Jun 20, 2020 · 3 comments

Comments

@ahuigo
Copy link

ahuigo commented Jun 20, 2020

No description provided.

@asos-craigmorten
Copy link
Collaborator

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.

@ahuigo
Copy link
Author

ahuigo commented Jun 24, 2020

Maybe, deno should consider use Snowpack, it is without bundling and very different from Webpack and Rollup.

@asos-craigmorten
Copy link
Collaborator

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants