Very simple plugin to create a file at the end of the build process with the particular text.
npm i create-file-webpack --save-dev
const CreateFileWebpack = require('create-file-webpack')
// webpack config
{
plugins: [
new CreateFileWebpack({options})
]
}
var opts = {
// path to folder in which the file will be created
path: './dist',
// file name
fileName: 'index.js',
// content of the file
content: 'export * from ./module.umd.js'
};