Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@jahredhope/react-loadable-webpack-plugin
Advanced tools
Webpack plugin for creating and reading a react-loadable manifest
A webpack loader to create and read react-loadable compatible manifest files.
react-loadable contains it’s own packaged webpack loader. However some features are not yet available in the packaged version. Once available this package can be deprecated.
PRs, feature requests and bug reports welcome.
$ npm install react-loadable @jahredhope/react-loadable-webpack-plugin
# OR
$ yarn add react-loadable @jahredhope/react-loadable-webpack-plugin
webpack.config.js
const {
ReactLoadablePlugin
} = require("@jahredhope/react-loadable-webpack-plugin");
module.exports = {
// ...
plugins: [
new ReactLoadablePlugin({
filename: "react-loadable.json"
})
]
};
src/render.js
const { getBundles } = require("@jahredhope/react-loadable-webpack-plugin");
// ...
function render({ stats }) {
const modules = [];
const appHtml = ReactDOMServer.renderToString(
<Loadable.Capture report={moduleName => modules.push(moduleName)}>
<App />
</Loadable.Capture>
);
const bundles = getBundles(stats, modules);
return `<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
${scripts.map(src => `<link rel="preload" href=${src} as="script" />`)}
</head>
<body>
<div id="root">${appHtml}</div>
${src.map(
script => `<script src="${src}" type="application/javascript"></script>`
)}
<!-- ... -->
</body>
</html>`;
}
FAQs
Webpack plugin for creating and reading a react-loadable manifest
The npm package @jahredhope/react-loadable-webpack-plugin receives a total of 3 weekly downloads. As such, @jahredhope/react-loadable-webpack-plugin popularity was classified as not popular.
We found that @jahredhope/react-loadable-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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.