DefinitelyTyped/types/clean-webpack-plugin/clean-webpack-plugin-tests.ts
2017-11-07 10:19:10 -08:00

18 lines
346 B
TypeScript

import CleanWebpackPlugin = require('clean-webpack-plugin');
const paths = [
'path',
'glob/**/*.js',
];
new CleanWebpackPlugin(paths);
new CleanWebpackPlugin(paths, 'root-directory');
new CleanWebpackPlugin(paths, {});
new CleanWebpackPlugin(paths, {
root: 'root-directory',
verbose: true,
dry: true,
watch: true,
exclude: ['a, b'],
});