You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get uglify running in a browser within a webapp built with webpack. Since you have merged a PR for webpack-compatibility - see #3435 - I am curious how I have to configure webpack to get uglifyjs running.
I am trying to get uglify running in a browser within a webapp built with webpack. Since you have merged a PR for webpack-compatibility - see #3435 - I am curious how I have to configure webpack to get uglifyjs running.
E.g. my simple
webpack.config.js
looks like this:index.js
looks like this:But when I build and run this in a browser I get an error in the web console:
The
fs: 'empty
-mock basically replaces therequire('fs')
with a plain empty object, so thatreadFileSync
isundefined
.So is there any better webpack configuration for running uglify in a browser?
The text was updated successfully, but these errors were encountered: