webpack plugin to download type definitions based on remotes
npm install webpack-remote-types-pluginA webpack plugin to download typescript type definitions generated by dts-loader
from remote.
```
yarn add webpack-remote-types-plugin
`javascriptapp
new WebpackRemoteTypesPlugin({
remotes: {
app: 'app@http://localhost:9000/remoteEntry.js',
},
outputDir: 'types', // supports [name] as the remote name
remoteFileName: '[name]-dts.tgz' // default filename is [name]-dts.tgz where [name] is the remote name, for example, with the above setup`
}),
The plugin will download tarball from http://localhost:9000/app-dts.tgz and unzip the tarball to ./types` folder