Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mortenson/inline-source-loader
A Webpack loader that uses inline-source, treating assets as modules.
https://github.com/mortenson/inline-source-loader
Last synced: about 1 month ago
JSON representation
A Webpack loader that uses inline-source, treating assets as modules.
- Host: GitHub
- URL: https://github.com/mortenson/inline-source-loader
- Owner: mortenson
- Created: 2017-12-30T23:31:04.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-31T00:07:32.000Z (almost 7 years ago)
- Last Synced: 2024-10-03T01:43:37.216Z (3 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# inline-source-loader
A webpack loader that uses [inline-source](https://github.com/popeindustries/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
```html
`
```
is found in content passed to the loader, `component.scss` will be required as
a Webpack module, added as a dependency, and inlined like:
```html/* Fully processed SCSS here */
```
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
```