
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
webpack-plugin-asset-extractor
Advanced tools
This small webpack plugin allows you to set custom public paths for your assets as well as output paths.
Main difference to file-loader is that outputPath and publicPath don't affect each other.
const AssetExtractor = require('webpack-plugin-asset-extractor');
const imageExtractor = new AssetExtractor({
manifest: 'assets.json'
});
module.exports = {
// ...
module: {
rules: [
// ...
{
test: /\.(gif|png|jpe?g|svg)$/i,
use: [
imageExtractor.loader({
hash:'sha512',
digest:'hex',
name: '[hash].[ext]',
publicPath: '/assets/images/'
}),
{
loader: 'image-webpack-loader',
options: {
// ...
}
}
]
}
]
},
plugins: [
// ...
imageExtractor
]
};
| Name | Type | Default | Description |
|---|---|---|---|
manifest | String | asset-manifest.json | Configure a custom filename with generated assets map filename to url |
| Name | Type | Default | Description |
|---|---|---|---|
name | String or Function | [hash].[ext] | Configure a custom filename template for your file |
context | String | this.options.context | Configure a custom file context, defaults to webpack.config.js context |
publicPath | String or Function | / | Configure a custom public path for your files |
outputPath | String or Function | 'undefined' | Configure a custom output path for your files (within context) |
FAQs
Allows asset extraction to configurable path
We found that webpack-plugin-asset-extractor 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.