
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
html-webpack-mountpoint-plugin
Advanced tools
A simple plugin that adds SPA mountpoints to the default template. Intended for use with the html-webpack-plugin.
This is a naive utility that adds application mount points to the default html template provided by html-webpack-plugin (use with webpack4)
to install:
npm i html-webpack-mountpoint-plugin --save-devyarn add html-webpack-mountpoint-plugin -Dwebpack.config.js
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackMountpointPlugin = require('html-webpack-mountpoint-plugin');
...
{
plugins: [
new HtmlWebpackPlugin({
title: 'WebpackMountpointTest',
<options>
}),
new HtmlWebpackMountpointPlugin({
tagName: 'section',
mountPoints: ['app-hook', 'dialogs-hook']
}) ...
or
new HtmlWebpackMountpointPlugin([
{
tagName: 'section',
id: 'app-hook',
attributes: {
className: 'spa mount'
}
},
{
tagName: 'div',
id: 'dialogs-hook',
attributes: {
className: 'too-cool'
}
},
])
], ...
}
produces: index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>WebpackMountpointTest</title>
</head>
<body>
<section id="app-hook"></section>
<section id="dialogs-hook"></section>
<script type="text/javascript" src="src.bundle.js"></script>
</body>
<!-- or -->
<body>
<section id="app-hook" class="spa mount"></section>
<div id="dialogs-hook" class="too-cool"></div>
<script type="text/javascript" src="src.bundle.js"></script>
</body>
</html>
Please post any issues or feature requests to https://github.com/AdamAtri/html-webpack-mountpoint-plugin/issues
FAQs
A simple plugin that adds SPA mountpoints to the default template. Intended for use with the html-webpack-plugin.
We found that html-webpack-mountpoint-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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.