Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
kd-html-webpack-inline-source-plugin
Advanced tools
Embed javascript and css source inline when using the webpack dev server or middleware
Enhances html-webpack-plugin
functionality by adding the {inlineSource: 'regex string'}
option.
This is an extension plugin for the webpack plugin html-webpack-plugin. It allows you to embed javascript and css source inline.
You must be running webpack on node 4 or higher
Install the plugin with npm:
$ npm install --save-dev html-webpack-inline-source-plugin
Require the plugin in your webpack config:
var HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');
Add the plugin to your webpack config as follows:
plugins: [
new HtmlWebpackPlugin(),
new HtmlWebpackInlineSourcePlugin()
]
The above configuration will actually do nothing due to the configuration defaults.
When you set inlineSource
to a regular expression the source code for any javascript or css file names that match will be embedded inline in the resulting html document.
plugins: [
new HtmlWebpackPlugin({
inlineSource: '.(js|css)$' // embed all javascript and css inline
}),
new HtmlWebpackInlineSourcePlugin()
]
If any source files contain a sourceMappingURL directive that isn't a data URI, then the sourcemap URL is corrected to be relative to the domain root (unless it already is) instead of to the original source file.
All sourcemap comment styles are supported:
//# ...
//@ ...
/*# ...*/
/*@ ...*/
FAQs
Embed javascript and css source inline when using the webpack dev server or middleware
The npm package kd-html-webpack-inline-source-plugin receives a total of 1 weekly downloads. As such, kd-html-webpack-inline-source-plugin popularity was classified as not popular.
We found that kd-html-webpack-inline-source-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.