https://picturepan2.github.io/spectre/index.html#installation
I'd like to use this CSS framework called spectre.css
, but I've rarely used yarn (also the original npm).
Running $yarn add spectre.css
confirmed that the directory spectre.css
was created in the directory node_modules
and installed the file group.
I would like to create a static page called index.html
with this CSS loaded, but I don't know how to load it.
node_modules/spectre.css/dist/
contains CSS, so
<linkrel="stylesheet" href="./node_modules/spectre.css/dist/spectre.css">
and I think I can load it. Is this correct?
When actually publishing a website, the path contains the letter node_modules
which makes me uncomfortable.
Is that what it is?
For your information, the contents of node_modules/spectre.css/dist/
Nice to meet you.It may depend on the size of the application, but do you use module banders such as Webpack or Browserify for development? Otherwise, there is no problem if the path node_modules is included.
Third-party modules installed in npm, bower, etc. are typically called module banders such as Webpack, Browserify, and Rollup, which help resolve the dependency of loading external files in source code without worrying about the path to be loaded
If not, you can specify a relative path and read it.
610 GDB gets version error when attempting to debug with the Presense SDK (IDE)
617 Uncaught (inpromise) Error on Electron: An object could not be cloned
911 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.