Babel plugin transforming any file to a module exporting the file content as string.
{
extensions: [ ".css$", ".txt$" ]
}
A file named style.css
and containing
p { color: red; }
is transformed to
module.exports = "p {\n color: red;\n}\n";
Babel plugin transforming any file to a module exporting the file content as string
JavaScript