DefinitelyTyped/types/case-sensitive-paths-webpack-plugin/case-sensitive-paths-webpack-plugin-tests.ts
Max Boguslavsky f8fe502c51 Updated definition of type for case-sensitive-paths-webpack-plugin (#36830)
* updated definition

* added test

* fixed error

* reverted changes not related to pull request
2019-07-12 14:50:28 -07:00

21 lines
557 B
TypeScript

import { Compiler, Configuration, Plugin } from 'webpack';
import CaseSensitivePathsWebpackPlugin = require('case-sensitive-paths-webpack-plugin');
const options: CaseSensitivePathsWebpackPlugin.Options = {
debug: true,
};
const compiler: Compiler = new Compiler();
const plugin: Plugin = new CaseSensitivePathsWebpackPlugin();
plugin.apply(compiler);
const c: Configuration = {
plugins: [
new CaseSensitivePathsWebpackPlugin(),
new CaseSensitivePathsWebpackPlugin({
debug: true,
}),
plugin,
],
};