mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Unused files webpack plugin fix (#38660)
* fixed export * fixed tests * fixed formatting
This commit is contained in:
committed by
Ben Lichtman
parent
13f5293ab6
commit
a960c0bd92
6
types/unused-files-webpack-plugin/index.d.ts
vendored
6
types/unused-files-webpack-plugin/index.d.ts
vendored
@@ -7,7 +7,7 @@
|
||||
|
||||
import { Plugin } from 'webpack';
|
||||
|
||||
interface Options {
|
||||
export interface Options {
|
||||
patterns?: string[];
|
||||
failOnUnused: boolean;
|
||||
globOptions?: {
|
||||
@@ -17,8 +17,6 @@ interface Options {
|
||||
cwd?: string;
|
||||
}
|
||||
|
||||
declare class UnusedFilesWebpackPlugin extends Plugin {
|
||||
export class UnusedFilesWebpackPlugin extends Plugin {
|
||||
constructor(options: Options);
|
||||
}
|
||||
|
||||
export = UnusedFilesWebpackPlugin;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as webpack from 'webpack';
|
||||
import UnusedFilesWebpackPlugin = require('unused-files-webpack-plugin');
|
||||
import { UnusedFilesWebpackPlugin } from 'unused-files-webpack-plugin';
|
||||
|
||||
const ignoredFiles = [''];
|
||||
const config: webpack.Configuration = {
|
||||
|
||||
Reference in New Issue
Block a user