4 ms·
Install from NPM? Seems strange to have a simple css file as a dependency. Is there a reason for this? Genuine question.
by lancesells 5y ago
Install from NPM? Seems strange to have a simple css file as a dependency. Is there a reason for this? Genuine question.
- TiredGuy 5y agoWell one advantage could be that you get the tooling around versioning in case you want automatic minor version updates or stuff like that. And I guess others might find value in inserting it using their bundler as described in the docs if they have other css-related tooling in their bundler like minification or linting.
- gherkinnn 5y agoIf I'm using npm anyway, I might as well keep all of my dependencies listed in the package.json. And if I have CSS integrated in my build (using Next.js or something), importing it will add it to the build bundle size info. It's homogenous and where I'd expect to find things. There's of course no reason to start using npm wizardry for simple.css alone. That would be silly.