npm

Need private packages and team management tools?Check out npm Orgs. »

webpack-dts-bundle

0.0.2 • Public • Published

webpack-dts-bundle

Webpack plugin of dts-bundle wrapper.

Install

npm install --save-dev webpack-dts-bundle

Usage

// in `webpack.config.ts`
import * as webpack from 'webpack';
import * as path from 'path';
import DtsBundlePlugin from 'webpack-dts-bundle';
 
const configuration: webpack.Configuration = {
  plugins: [
    new DtsBundlePlugin({
      name: 'your-awesome-module-name',
      main: path.resolve(__dirname, './src/index.d.ts'),
      out: path.resolve(__dirname, './dist/index.d.ts'),
      verbose: true,
    }),
  ]
};

License

Copyright 2017 Shuma Yoshioka

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

install

npm i webpack-dts-bundle

Downloadsweekly downloads

31

version

0.0.2

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability