Customize Optimization
When your extension is shared or deployed, all its resources are optimized to improve performance. If you want to specify the resources you want to include and exclude in the optimized resources bundle, you can define your own optimization configuration in a build.json
file.
Optimization, by default, includes all resources that match the regular expression
.*(\\.(js|json|html|css))$
in an optimized resources bundle named vb-app-bundle
. During this process, stylesheets, HTML, and JSON files are minified, and RequireJS bundles created in the embedded build server that prepares your extension to be shared or deployed. To customize this configuration to include and exclude resources, you'll need to create a build.json
file and define your own configuration before sharing or deploying your extension.