I am creating a project using webpack. The project uses materializecss . When I add materialize.js to the recording file, it complains about the error below Cannot resolve module 'hammerjs'
When I open the file, I see this definition there, but it seems that webpack cannot identify it. Same thing with a weak knockout player es6. My solution was to add a link to hammer.min.js to resolve.alias , but not sure if this is the right thing.
How do I get webpack to recognize these dependencies when they are webpack with the appropriate library - in this case materialize.js ?
source share