0.2.7 • Published 3 years ago

webpack-remote-types-plugin v0.2.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

WebpackRemoteTypesPlugin

A webpack plugin to download typescript type definitions generated by dts-loader from remote.

Install

yarn add webpack-remote-types-plugin

Usage

  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, `app` with the above setup
  }),

The plugin will download tarball from http://localhost:9000/app-dts.tgz and unzip the tarball to ./types folder

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.4

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago