fossamagna/gas-webpack-plugin

Issue with Production mode

labnol opened this issue · 5 comments

The top level functions are not generated when the mode is set to production. It works fine for 'none' mode.

@labnol Thank you for your report. Do you have the source code to reproduce the problem?

@fossamagna - here's how you can reproduce the issue:

git clone https://github.com/labnol/website-monitor
cd website-monitor
npm install
npx webpack (works fine)
npx webpack --mode production (top level functions are not generated)

@labnol I tried build website-monitor on production mode. I could be reproduced issue too.
This problem contains from gas-webpack-plugin@1.0.0.
workaround. Please downgrade to gas-webpack-plugin@0.3.0.
I will try fix to this issue at this weekend.

@fossamagna - thank you for all the good work you are doing!

Thanks!