copy-asset-in-memory-webpack-plugin
Version:
Copy assets in webpack memory
21 lines (16 loc) • 507 B
TypeScript
import { Compiler, WebpackPluginInstance } from 'webpack';
type Rule = string | RegExp | Array<string | RegExp>;
interface Options {
test: Rule;
include?: Rule;
exclude?: Rule;
stage?: number;
transform?: (buffer: Buffer) => string;
to: string | ((fileName: string) => string);
deleteOriginalAssets?: boolean;
}
declare class CopyAssetInMemoryPlugin implements WebpackPluginInstance {
constructor(options: Options);
apply(compiler: Compiler): void;
}
export = CopyAssetInMemoryPlugin;