Skip to content

manigandham/base64-raw-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

base64-raw-loader

Webpack loader that imports the raw text content of a file as a base-64 encoded string.

https://www.npmjs.com/package/base64-raw-loader

Simple inline usage:

import templateContent from 'base64-raw-loader!./template.html';

// export it as a simple string
export { templateContent }

// or use it in code
console.log('encoded:', templateContent);
console.log('decoded:', atob(templateContent));

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published