Gathering detailed insights and metrics for @effortlessmotion/html-webpack-inline-source-plugin
Gathering detailed insights and metrics for @effortlessmotion/html-webpack-inline-source-plugin
Gathering detailed insights and metrics for @effortlessmotion/html-webpack-inline-source-plugin
Gathering detailed insights and metrics for @effortlessmotion/html-webpack-inline-source-plugin
npm install @effortlessmotion/html-webpack-inline-source-plugin
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
421 Stars
85 Commits
66 Forks
5 Watching
2 Branches
13 Contributors
Updated on 14 Oct 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
6.4%
182
Compared to previous day
Last week
4.1%
924
Compared to previous week
Last month
-13.6%
3,690
Compared to previous month
Last year
22.4%
72,688
Compared to previous year
3
2
see: https://github.com/icelam/html-inline-script-webpack-plugin
Enhances html-webpack-plugin
functionality by adding the {inlineSource: 'regex string'}
option.
This is an extension plugin for the webpack plugin html-webpack-plugin (version 4 or higher). It allows you to embed javascript and css source inline.
You must be running webpack on node 6 or higher.
Install the plugin with npm:
1$ npm install --save-dev html-webpack-inline-source-plugin
Require the plugin in your webpack config:
1var HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');
Add the plugin to your webpack config as follows:
1plugins: [ 2 new HtmlWebpackPlugin(), 3 new HtmlWebpackInlineSourcePlugin() 4]
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.
1plugins: [ 2 new HtmlWebpackPlugin({ 3 inlineSource: '.(js|css)$' // embed all javascript and css inline 4 }), 5 new HtmlWebpackInlineSourcePlugin() 6]
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:
//# ...
//@ ...
/*# ...*/
/*@ ...*/
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 5/13 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
72 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More