
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
chmod-webpack-plugin
Advanced tools
This plugin allows you to set files and directories permissions after bundle compilation.
npm i --save chmod-webpack-plugin
// webpack.conf.js
const ChmodWebpackPlugin = require("chmod-webpack-plugin");
module.exports = {
plugins: [
new ChmodWebpackPlugin([
{path: "dist/dist/", mode: 660},
{path: "dist/bin/**"},
{path: "dist/public/", mode: 640},
],
{
verbose: true,
mode: 770,
}),
],
};
// webpack.conf.js
const ChmodWebpackPlugin = require("chmod-webpack-plugin");
module.exports = {
plugins:[
new ChmodWebpackPlugin(config [, commonOptions])
]
}
Object or array of objects
const config = {
// Required, string or array of strings
// Globs that match files/paths to set permissions
path,
// Same as path parameter, but ,atched paths will will be ignored
exclude: [],
// Path that will be treated as relative root for globs
// By default it is a webpack's directory
root: path.dirname(module.parent.filename),
// Permissions to set
mode: 644,
// If true will output the result of each matched path processing
verbose: false,
// If true will not generate any console output (excepting errros)
silent: false,
// If true will only emulate permissions change
dryDun: false,
// If true only files will be processed
filesOnly: false,
// If true only directories will be processed
directoriesOnly: false,
};
Object of parameters tat will be used as default for all configs.
Has the same structure with config entity, instead of .path parameter, which is ignored here.
npm i
npm run test
npm i
npm run test:coverage
FAQs
chmod-webpack-plugin <a href="https://www.npmjs.com/p
The npm package chmod-webpack-plugin receives a total of 45 weekly downloads. As such, chmod-webpack-plugin popularity was classified as not popular.
We found that chmod-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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.