A webpack plugin to set file and directory permissions (chmod) on output files and folders. Currently at version 1.0.10 (last updated 2022), with infrequent releases. Tested with Webpack 2, 3, and 4. Supports both simple string paths and per-path mode configurations using octal strings or integers. Unlike generic chmod scripts, it integrates directly into the webpack build pipeline. Minimal dependencies; notable for its simplicity but lacks support for webpack 5 and has limited maintenance.
npm install webpack-permissions-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets 755 permissions on files and 644 on directories under dist/ using webpack-permissions-plugin.
Ensure PermissionsOutputPlugin is the last plugin in the plugins array.
Check directory existence manually if needed.
Consider switching to a more modern plugin or a webpack 5-compatible alternative.
Apply this plugin as the last step.
Always use '755' (string) or 0o755 (number), not 755 (decimal).
Run 'npm install -D webpack-permissions-plugin' and ensure correct require path.
Use 'const PermissionsOutputPlugin = require("webpack-permissions-plugin")'.