node.js - How to get rid of the webpack source code on client side? -


i deploy node.js app on pm2 server serves client code nginx. client source code bundled webpack. supposed minified , obfuscated. when run app on client side , open console log "source" tab can see both obfuscated source code , webpack file structure located under "top://webpack" directory.

i don't want show code structure client. how can rid of webpack file structure on browser?

this original file structure provided sourcemaps. great because allows trace errors in production code.

you have following options here

  • disable sourcemaps generation setting devtool: false docs.
  • do not serve *.map files removing them or configuring nginx not serve files.

you read discussion why not great idea here


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -