Socket
Book a DemoInstallSign in
Socket

inline-source-loader

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inline-source-loader

A Webpack loader that uses inline-source, treating assets as modules.

0.0.1
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

webpack

FAQs

Package last updated on 31 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.