Hi Team!
I bought Medtronic template and already in the middle of creating my website with it.
Now I need an additional javascript plugin "three".
I installed it via NPN and yarn. Can find it in the "node_modules" folder.
From that point I am a bit lost how to integrate it in the build environment, compile it and making use of it in my website. The tutorial I read here is not that helpful "https://preview.keenthemes.com/html/metronic/docs/getting-started/build/webpack".
It even looks like step 3 is same as step 2?
How to add "three" in the package.json
And Later how to integrate simply the javascript and css files in header and footer?
Integration via WebPack
Hi,
Could you please try to follow these steps:
1. Create the file "three.bundle.js" in the following location: /tools/webpack/plugins/custom/three/
2. Add the following content to the "three.bundle.js" file:
import * as THREE from "three/build/three.module.js";
window.THREE = THREE;
<script src="/dist/assets/plugins/custom/three/three.bundle.js"></script>