How to access css file after npm install
MaluNoPeleke opened this issue · 2 comments
MaluNoPeleke commented
Describe your problem/question
I have installed via npm and cannot figure out how to add the js to my website because I can only find it in the node_modules folder but not somewhere else.
Make it reproduce-able
npm install lazysizes --save
In root directory of web project.
Add tags/keywords
#npm #embed
aFarkas commented
You are using a bundler like webpack, rollup or parcel right?
Then you include the JS file by simply importing it via:
import 'lazysizes'
MaluNoPeleke commented
No, I am using Kirby CMS (based on PHP) which I have installed via Composer + this plugin which requires your package.