Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
split-by-path-webpack-plugin
Advanced tools
Split a Webpack entry bundle into any number of arbitrarily defined smaller bundles
This plugin will split your entry bundle into any number of arbitrarily defined smaller bundles.
Note: For webpack v1.x use version 0.x of this package, 1.x for webpack v2.x
This plugin is based on split-by-name-webpack-plugin.
Configuration of the plugin is simple. You instantiate the plugin with a single option: buckets
which should be an
array of objects, each containing the keys name
and regex
. Any modules which are in your entry chunk which match the
bucket's regex (first matching bucket is used), are then moved to a new chunk with the given name.
Creating a 'catch-all' bucket is not necessary: anything which doesn't match one of the defined buckets will be left in the original chunk.
var SplitByPathPlugin = require('split-by-path-webpack-plugin');
module.exports = {
entry: {
app: 'app.js'
},
output: {
path: __dirname + '/dist',
filename: "[name]-[chunkhash].js",
chunkFilename: "[name]-[chunkhash].js"
},
plugins: [
new SplitByPathPlugin({
buckets: [{
name: 'vendor',
regex: /(node_modules\/|src\/vendor\/)/
}]
})
]
};
FAQs
Split a Webpack entry bundle into any number of arbitrarily defined smaller bundles
The npm package split-by-path-webpack-plugin receives a total of 99 weekly downloads. As such, split-by-path-webpack-plugin popularity was classified as not popular.
We found that split-by-path-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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.