Fullpage.js: import extension as module

Created on 20 Mar 2020  路  2Comments  路  Source: alvarotrigo/fullPage.js

Trying to import fullpage.extension.min.js from node_modules

Hello, I'm setting up a new environnement with gulp from creating a Wordpress Theme.

I'm trying to add fullpage.extension.min.js because I want to use the extension offsetSections that I bought.

before that, I implement the plugin fullpage.js easily with

import fullpage from 'fullpage.js' from my node_modules folder after the command:
npm install --save fullpage.js

The folder fullpage.js has been created with this structure
fullpage.js > dist (all the files belonging to the folder)

vendors (all the files belonging to the folder)
LICENSE
package.json
README.md

Following the logic behind import fullpage from 'fullpage.js' I want to import the extension file within the dist folder

import extension from 'fullpage.js' // doesn't workt
import * as extension from 'fullpage.js' // doesn't work also

I'm stuck here and I would really like to import it properly and not to enqueue it or to create a script tag that would be against performance,

Could someone guide me ?

Thanks a lot =)

Albin

question

Most helpful comment

All 2 comments

Oh damn ! didn't know this exist !!! Thanks so much for this amazing documentation !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anonet1 picture anonet1  路  3Comments

festwertspeicher picture festwertspeicher  路  4Comments

VanIvano picture VanIvano  路  5Comments

Sperziemone picture Sperziemone  路  5Comments

ortonomy picture ortonomy  路  3Comments