Installed RequireJS, everything breaks

See resources image
Installing RequireJS is pretty simple.

npm i requirejs --save

Then we copy the require.js file

copy node_modules\requirejs\require.js public\js\lib

Then we create the configuration file for our modules

npp public\js\config.js

And change the index html accordingly
Loads libs with requirejs
removes redundant files that are in stylesheets
modules are now required