This webpack plugin takes the index.html generated by webpack and adds all bindings defined in the metadata file. Then it compress all files in /dist into a .dextpl and places it inside /builds.
npm i --save-dev dex-template-webpack-plugin
webpack.config.js
var DexTemplatePlugin = require('dex-template-webpack-plugin');
module.exports = {
configureWebpack: {
plugins: [new DexTemplatePlugin()]
}
}
Dex Template and metadata.json documentation
Demián Levy Polat