Giter Club home page Giter Club logo

Comments (4)

GetPsyched avatar GetPsyched commented on July 17, 2024 1

Oh well, that pretty much solves my problem neatly; thanks!

from clsx.

skyrpex avatar skyrpex commented on July 17, 2024

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.

GetPsyched avatar GetPsyched commented on July 17, 2024

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.

skyrpex avatar skyrpex commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.