I've downloaded a javascript + css + images library (dxhtml) and want to bundle it instead of hardcoding the script/css imports in the html. But the javascript is not a module (it doesn't do module.exports
).
What is the best way to achieve this? Should I add the main file in the library to entry
in webpack.config.js
?
I'm successfully bundling all kinds of node modules, but I've tried to include local files with no success.