webpack-plugin-noop-ts
TypeScript icon, indicating that this package has built-in type declarations

2.1.6 • Public • Published

webpack-plugin-noop-ts

npm

webpack plugin for typescript that does nothing, fork https://github.com/QingWei-Li/noop-webpack-plugin

Installation

# npm
npm add -D webpack-plugin-noop-ts

Usage

import { Configuration } from 'webpack';
import NoopWebpackPlugin from 'webpack-plugin-noop-ts';

const webpackConfig = (): Configuration => {
  const isWebpackDev = process.env.NODE_ENV === 'development';

  return {
    // your config
    plugins: [...[isWebpackDev ? new YourPlugin() : NoopWebpackPlugin()]],
  };
};

License

MIT

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i webpack-plugin-noop-ts

    Weekly Downloads

    2

    Version

    2.1.6

    License

    MIT

    Unpacked Size

    2.6 kB

    Total Files

    6

    Last publish

    Collaborators

    • taoliujun