webpack-remote-types-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.2.7 • Public • Published

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

/webpack-remote-types-plugin/

    Package Sidebar

    Install

    npm i webpack-remote-types-plugin

    Weekly Downloads

    2,144

    Version

    0.2.7

    License

    MIT

    Unpacked Size

    11.5 kB

    Total Files

    12

    Last publish

    Collaborators

    • ruanyu1