You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
In the docs it is mentioned, that one can install NG2 by means of a local NPM installation. I can for sure install both jQuery and NG2 as (project) dependencies putting them in some folder like node_modules/nanogallery2 etc.
I want then use a builder/bundler (like Vite, Webpack, Rollup or whatever) to bundle jQuery (as required by NG2), NG2 core and some lines from me (to instantiate the NG2 correctly) in a bundle and ship that as part of the deployment. How can I achieve this?
I tried to du it with a Hugo static page to generate the HTML code (not really related here) but was facing the problem that NG2 claimed in the browser logs that no compatible jQuery was found.
As this involved a build step with NPM involved, I created a dummy page (mainly the boilerplate code) here. There is a short README that explains the 3 steps needed to run everything.
Once, this is sorted out, I suggest to update some of the documentation but nevertheless, first get this sorted out, okay?
The text was updated successfully, but these errors were encountered:
Describe the issue
In the docs it is mentioned, that one can install NG2 by means of a local NPM installation. I can for sure install both jQuery and NG2 as (project) dependencies putting them in some folder like
node_modules/nanogallery2
etc.I want then use a builder/bundler (like Vite, Webpack, Rollup or whatever) to bundle jQuery (as required by NG2), NG2 core and some lines from me (to instantiate the NG2 correctly) in a bundle and ship that as part of the deployment. How can I achieve this?
I tried to du it with a Hugo static page to generate the HTML code (not really related here) but was facing the problem that NG2 claimed in the browser logs that no compatible jQuery was found.
As this involved a build step with NPM involved, I created a dummy page (mainly the boilerplate code) here. There is a short README that explains the 3 steps needed to run everything.
Once, this is sorted out, I suggest to update some of the documentation but nevertheless, first get this sorted out, okay?
The text was updated successfully, but these errors were encountered: