Skip to content

Babel plugin transforming any file to a module exporting the file content as string

Notifications You must be signed in to change notification settings

davibe/babel-plugin-wrap-in-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wrap-in-js

Babel plugin transforming any file to a module exporting the file content as string.

Options

{
  extensions: [ ".css$", ".txt$" ]
}

Example

A file named style.css and containing

p { color: red; }

is transformed to

module.exports = "p {\n  color: red;\n}\n";

About

Babel plugin transforming any file to a module exporting the file content as string

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published