base64-raw-loader

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i base64-raw-loader

Weekly Downloads

54

Version

1.0.1

License

none

Unpacked Size

2.21 kB

Total Files

4

Last publish

Collaborators

  • manigandham