Gathering detailed insights and metrics for linker-webpack-plugin
Gathering detailed insights and metrics for linker-webpack-plugin
Gathering detailed insights and metrics for linker-webpack-plugin
Gathering detailed insights and metrics for linker-webpack-plugin
npm install linker-webpack-plugin
Typescript
Module System
Node Version
NPM Version
66.9
Supply Chain
99.2
Quality
75.2
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
3,577
Last Day
1
Last Week
1
Last Month
21
Last Year
246
8 Stars
7 Commits
2 Forks
3 Watching
1 Branches
2 Contributors
Latest Version
1.0.2
Package Id
linker-webpack-plugin@1.0.2
Size
4.17 kB
NPM Version
3.8.3
Node Version
5.10.1
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-91.7%
1
Compared to previous week
Last month
110%
21
Compared to previous month
Last year
0.8%
246
Compared to previous year
Inject content inbetween HTML comment tags.
npm i linker-webpack-plugin --save-dev
String
File to read tags from relative to the node app pathBoolean
if true - new content will be appended to existing contentString
File to create/replace relative to the node app pathObject
key-value pair of tag identifiers and the content replacementString
Alias that will be replaced with the webpack entry hash1// webpack config file 2 3import LinkerPlugin from 'linker-webpack-plugin'; 4 5... 6plugins: [ 7 new LinkerPlugin({ 8 entry: './src/views/index.html', // any extension (ejs, markdown, text etc) 9 hash: '[hash]', 10 output: './build/views/index.html', 11 data: { 12 css: '<link type="text/css" rel="stylesheet" href="//localhost:3000/styles-[hash].css">', 13 scripts: '<script src="//localhost:3000/bundle-[hash].js"></script>', 14 analytics: ` 15 <script> 16 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 17 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 18 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 19 })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 20 21 ga('create', 'UA-XXXXXX-X', 'auto'); 22 ga('send', 'pageview'); 23 </script>` 24 } 25 }) 26], 27 28....
./src/views/index.html
:
1<!DOCTYPE html> 2<html> 3<head> 4 <!-- #css --> 5 <!-- #end --> 6</head> 7<body> 8 <!-- #scripts --> 9 <!-- #end --> 10 11 <!-- #analytics --> 12 <!-- #end --> 13</body> 14</html>
./build/views/index.html
:
1<!DOCTYPE html> 2<html> 3<head> 4 <link type="text/css" rel="stylesheet" href="//localhost:3000/styles-t345b3Bdh4n2j4jb4.css"> 5</head> 6<body> 7 <script src="//localhost:3000/bundle-t345b3Bdh4n2j4jb4.js"></script> 8 9 <script> 10 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 11 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 12 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 13 })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 14 15 ga('create', 'UA-XXXXXX-X', 'auto'); 16 ga('send', 'pageview'); 17 </script> 18</body> 19</html>
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
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
Score
Last Scanned on 2024-12-16
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