Comments (4)
Oh well, that pretty much solves my problem neatly; thanks!
from clsx.
May I ask why? npm/Yarn/pnpm are very well established and pretty much the defacto for installing dependencies. You'll have a hard time not using them for any package!
from clsx.
It's because the project is too tiny for me to bother with frameworks, etc. The biggest and mostly only dependency I need is TailwindCSS which is already available to install in plain HTML.
clsx
is just a nice to have which is why I asked here. Even so, it doesn't justify adding npm
or nodejs
to my dependencies since I won't need any packages in the future either. If I do, then I'll most likely just switch out of plain HTML as well.
from clsx.
In that case, have you tried using CDN's such as unpkg? You should be able to load clsx
directly into HTML by adding
<script src="https://www.unpkg.com/[email protected]/dist/clsx.min.js"></script>
to your page.
Note: that should work for any npm package if you like that kind of work style.
from clsx.
Related Issues (20)
- clsx is not a function HOT 2
- Add documentation on usage with Tailwind CSS HOT 2
- What is the purpose of this? HOT 5
- CSS Variables not working in clsx HOT 3
- Module format error on import with vitest HOT 3
- TypeScript Issue HOT 2
- "This expression is not callable." error when using TypeScript with moduleResolution "node16" or "nodenext" HOT 2
- Tailwind regex flags unreachable paths HOT 2
- Is There A Bug in Microsoft Edge that Impacts clsx? HOT 4
- Is it possible to enable `sourcemap` ? HOT 2
- Congrats! HOT 3
- syntax question
- Performance question HOT 3
- clsx returns only the first element of the array in React Native CLI
- Update benchmarks
- TS issue importing from clsx/lite HOT 9
- clsx/lite accepts ClassDictionary (TypeScript) HOT 3
- Cannot find module 'clsx/lite' or its corresponding type declarations HOT 2
- `./node_modules/clsx/dist/clsx.m.js` Module build failed: Error: ENOENT: no such file or directory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clsx.