My current website is built using HTML and CSS (with SCSS) and I have been using an NPM build script. Now, I am looking to incorporate some JavaScript libraries into my site, such as lozad.
I have already downloaded the necessary dependencies for the library, but since I am not well-versed in JS, I am unsure about the additional steps required. I attempted to follow the instructions provided in the documentation (link: https://github.com/ApoorvSaxena/lozad.js), but I have not been successful thus far.
I suspect that the issue lies with my existing NPM build script, as it may not be configured to handle JS files, leading to them not being displayed on the development server. It's possible that the implementation did work, just not during testing?
Could someone please guide me on what steps I need to take to make it functional, or advise on how to update my NPM script accordingly?
"scripts": {
// Existing scripts here
},
"devDependencies": {
// Existing dev dependencies here
},
"dependencies": {
// Existing dependencies here, including "lozad"
}