inline-source-loader

0.0.1 • Public • Published

inline-source-loader

A webpack loader that uses inline-source to inline any asset found in an HTML file or template. The source of the content comes either from require or the raw file processed by inline-source.

For example if this

<style inline src="./component.scss"></style>`

is found in content passed to the loader, component.scss will be required as a Webpack module, added as a dependency, and inlined like:

<style>
  /* Fully processed SCSS here */
</style>

This loader needs to be passed raw HTML content, so add it as early on as possible.

Installation

npm install --save-dev inline-source-loader

Readme

Keywords

Package Sidebar

Install

npm i inline-source-loader

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • mortenson