diff --git a/packages/generator/hub-widget/index.js b/packages/generator/hub-widget/index.js
index <HASH>..<HASH> 100644
--- a/packages/generator/hub-widget/index.js
+++ b/packages/generator/hub-widget/index.js
@@ -117,6 +117,10 @@ module.exports = class HubWidgetGenerator extends Generator {
             dependencies: Object.assign({}, packageJson.dependencies, {
               'hub-dashboard-addons': this.props.hubDashboardAddons,
               '@jetbrains/hub-widget-ui': this.props.jetbrainsHubWidgetUi
+            }),
+            scripts: Object.assign({}, packageJson.scripts, {
+              build: 'webpack -p', // Widgets with sourcemaps take to much space
+              dist: `npm run build && rm -f ${this.props.projectName}.zip && zip -r -j ${this.props.projectName}.zip ./dist`
             })
           });
           return JSON.stringify(newPackageJson, null, INDENT);
Include "dist" script to Yoman-generated widgets