Interface RawPluginOptions

interface RawPluginOptions {
    ext?: string[];
    loader?: "text" | "base64" | "dataurl" | "file" | "binary" | "default";
    textExtensions?: string[];
}

Properties

ext?: string[]

File extensions to check in order of priority if the specified file is missing. If it's a directory, the plugin will look for dir/index.[ext].

["ts", "tsx", "js", "jsx", "mjs", "mts", "module.css", "module.scss", "css", "scss"]
loader?: "text" | "base64" | "dataurl" | "file" | "binary" | "default"

Custom loader for file processing.

"text"
textExtensions?: string[]

Extensions to be treated as text files.