1.0.3 • Published 5 years ago
ctesiusjs v1.0.3
Use locally by setting the path to your local copy in the theme's package.json file:
"dependencies": {
// ...
"ctesius": "file:/home/[user]/ctesiusjs"
}
Then run npm install
.
To execute scripts on the global namespace (the same as if they were executed in order in the old blob) we need to use script-loader: https://stackoverflow.com/questions/48998102/webpack-how-to-load-non-module-scripts-into-global-scope-window
We can start refactoring these scripts into proper ES6 modules afterwards.
We need to expose jQuery globally for that the various plugins (cookie, colorbox etc) have access to it, so we need to use expose-loader: https://stackoverflow.com/questions/29080148/expose-jquery-to-real-window-object-with-webpack