givanz / VvvebJs

Drag and drop page builder library written in vanilla javascript without dependencies or build tools.
https://www.vvveb.com/vvvebjs/editor.html
Apache License 2.0
7.07k stars 1.62k forks source link

Create (NPM) package? #239

Open pepijndik opened 2 years ago

pepijndik commented 2 years ago

Hi is it possible to create an npm package of it so that it's easer to import/require it on specific pages without the need to require all the files of the libs and js and CSS?

givanz commented 2 years ago

Hi

There is a npm package at https://www.npmjs.com/package/vvvebjs but the editor can't be loaded using javascript alone, it needs the html elements of the editor to be already in the page, the html for the interface is not created from javascript. This has the disadvantage of requiring all assets but allows more flexibility and better separation of code from presentation.