Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
append-basename-webpack-plugin
Advanced tools
Append to basenames before resolution in webpack
style.css
becomes style.dark.css
Install the package
npm install --save-dev append-basename-webpack-plugin
Add the plugin to your webpack config resolve.plugins
// webpack.config.js
const AppendBasenameWebpackPlugin = require('append-basename-webpack-plugin');
module.exports = {
resolve: {
plugins: [
new AppendBasenameWebpackPlugin({
append: '.dark'
})
]
}
}
include
- (Default: null) String or Array of patterns to include appendingexclude
- (Default: null) String or Array of patterns to exclude appending. Takes priority over includeappend
- (Default: '') String to append to the basename of matched filessource
- (Default 'described-relative') Source hook to tap in enhanced-resolve's resolutiontarget
- (Default 'raw-file') Target hook to emit in enhanced-resolve's resolutionPush conditionals to the configuration level by overwriting imports. For example, theming with CSS modules.
FAQs
Append to basename in webpack resolution
The npm package append-basename-webpack-plugin receives a total of 1 weekly downloads. As such, append-basename-webpack-plugin popularity was classified as not popular.
We found that append-basename-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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.