PHP: 7.4.14
CakePHP 4.2.7
Composer 2.1.3
OS: Windows 10
I was able to follow the instructions for installation correctly. I now have a /node_modules folder in my project root.
I'm confused on what to do next.
CakePHP expects JS dependencies in /webroot/js. (/webroot is public)
I'm familiar with nodejs method of including modules by import { X } from '@x/y'
Those are not going to look in the same place.
What method should I use to make these accessible? Moving node_modules into the public scope seems incorrect.
Isn't there also an npm deploy or npm run method that is meant to be run? I'm not very familiar with nodejs/npm.
Thank you!
(I did search around for quite a while, but nothing I could find seemed like a "right" way to do it)
Hi,
I was able to follow the instructions for installation correctly. I now have a
/node_modules
folder in my project root. I'm confused on what to do next.CakePHP expects JS dependencies in
/webroot/js
. (/webroot
is public) I'm familiar with nodejs method of including modules byimport { X } from '@x/y'
Those are not going to look in the same place. What method should I use to make these accessible? Moving
node_modules
into the public scope seems incorrect.Isn't there also an
npm deploy
ornpm run
method that is meant to be run? I'm not very familiar with nodejs/npm.Thank you!
(I did search around for quite a while, but nothing I could find seemed like a "right" way to do it)