-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty output file #23
Comments
How does Sometimes modules don't have side effects. Like if they're just doing: function initApp () {
// stuff here
}
module.exports = initApp tinyify would consider all of this unused code and remove this. To check if this is what happening, try adding a
|
Thank you @goto-bus-stop. That did the trick. Except it then defines the resulting lib as a UMD. I'd like a way to stop Tinyify from removing dead code. But apparently there's no flag for this in this plugin. |
If you do |
I'm having issues trying to get this to generate a minified output file. The mentioned output file is empty. I've tried these options. None work.
And they all result in an empty foobar.min.js file. What am I doing wrong?
The text was updated successfully, but these errors were encountered: