Closed globalistas closed 1 year ago
The file alwan.min.js is an umd module, you can't consume it using ESM in webpack. The file is meant to be used in the browser. You can rebuild alwan color picker and output it as esm module.
You can rebuild alwan color picker and output it as esm module.
Is there an easy way to do this?
Clone the repository the you can modify the config file in scripts/webpack.common.js
, set the output.library.type
to var
.
then build it using the command npm run build
.
Hi, I am very new to all this and this is how I build my js/css bundles:
webpack --mode production --optimize-minimize --progress
Using this command however produces the following error:
I suspect my current Webpack config cannot work with minimized js files? Can you please advise what to do?
Thanks!