Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
outer-script-html-webpack-plugin
Advanced tools
Inject js into html without webpack compiler.
Working with html-webpack-plugin.
$ npm install outer-script-html-webpack-plugin --save-dev
webpack.config.js
const HtmlWebpackPlugin = require('html-webpack-plugin')
const OuterScriptPlugin = require('outer-script-html-webpack-plugin')
module.exports = {
...
output: {
publicPath: '/public/'
},
plugins: [
...
new OuterScriptPlugin(),
new HtmlWebpackPlugin({
...
outerScripts:[
{
chunk: '/absolute/path/to/a.js',
filename: 'js/a.js'
},
{
chunk: '/absolute/path/to/b.[chunkhash].js',
filename: 'js/b.[chunkhash].js'
}
]
})
]
}
ouput html:
...
<script type="text/javascript" src="/public/js/a.js">
<script type="text/javascript" src="/public/js/b.c57c86c1b956c3a01175.js">
// outer scripts will be injected before other scripts
<script type="text/javascript" src="/public/others.js">
...
FAQs
Inject original js into html, without webpack compiler
We found that outer-script-html-webpack-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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.