[READ ONLY] A Webpack plugin to remove assets from the build. This repository is a mirror, for issue tracking and development head to: https://github.com/automattic/jetpack
OTHER License
A Webpack plugin to remove assets from the build.
This runs relatively late in the Webpack build, so derived assets may be included even if the parent asset is removed. This may be useful if you're using static-site-generator-webpack-plugin to build static HTML while building scripts another way, or if you're using Webpack to build SASS to CSS without any associated JS script.
Generally you'll install this via your package manager, e.g.
npm install --save-dev @automattic/remove-asset-webpack-plugin
This goes in the plugins
section of your Webpack config, e.g.
{
plugins: [
new RemoveAssetWebpackPlugin( {
assets: [
'foo.js',
'foo.js.map',
],
},
],
};
assets
: This specifies the assets to remove from the output. The value may be a string, RegExp, Function, or an array of the same.
If you want to debug asset removal, set environment variable DEBUG
to include @automattic/remove-asset-webpack-plugin
.
Need to report a security vulnerability? Go to https://automattic.com/security/ or directly to our security bug bounty site https://hackerone.com/automattic.
eslint-config-target-es is licensed under GNU General Public License v2 (or later)