1.0.1 • Published 5 years ago

base64-raw-loader v1.0.1

Weekly downloads
9
License
-
Repository
-
Last release
5 years ago

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));
1.0.1

5 years ago

1.0.0

6 years ago

0.0.1-security

6 years ago