webpack-plugin-noop-ts
v2.1.6
Published
webpack noop plugin for typescript
Downloads
72
Readme
webpack-plugin-noop-ts
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