
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
inline-assets-webpack-plugin
Advanced tools
A webpack Plugin. Extract asset chunks, usually used in css separation processing for single-page applications. Output asset chunks on html via html-webpack-plugin.
react-asyncmodule-tool's importcss relay on the plugin.
npm install html-webpack-plugin --save-dev
npm install inline-assets-webpack-plugin --save-dev
webpack.config.js
const HtmlWebpackPlugin = require('html-webpack-plugin');
const AssetsChunkPlugin = require('inline-assets-webpack-plugin');
module.exports = {
...
plugins: [
new HtmlWebpackPlugin(),
new AssetsChunkPlugin(options)
]
};
html inline code like this
<script type="text/javascript">
window.__ASSETS_CHUNKS__ = {
"app":"/dist/app.49a9342d.css"
}
</script>
default 'webpackInlineAssetsChunks'.
Mounted on the htmlWebpackPlugin.files object, the corresponding script block can be generated in the html template using {{{htmlWebpackPlugin.files.webpackInlineAssetsChunks}}}}.
Used in webpack v4-.
'head | body'. The location of the generated script block, Used in webpack v4.
Directory filename for assetchunks. Such aspath.resolve(__dirname, './build/assets.json').The generated files are used in the production server side.
FAQs
split assets by webpack stats
We found that inline-assets-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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.