Closed seahindeniz closed 4 years ago
This is the way to import the CSS file, which is kind of ugly because of the relative path
@import 'tippy.js/dist/tippy.css';
Using the style field in package.json file like this
style
{ "style": "dist/tippy.css", ... "version": "6.2.6" }
will allow importing style file in this way
@import "~tippy.js";
There's a bunch of other CSS files that can be, or need to be, imported as well though, so imo for consistency it should be left as it is.
Problem
This is the way to import the CSS file, which is kind of ugly because of the relative path
Solution
Using the
style
field in package.json file like thiswill allow importing style file in this way