aFarkas/lazysizes

How to access css file after npm install

MaluNoPeleke opened this issue · 2 comments

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

You are using a bundler like webpack, rollup or parcel right?

Then you include the JS file by simply importing it via:

import 'lazysizes'

No, I am using Kirby CMS (based on PHP) which I have installed via Composer + this plugin which requires your package.