
Security News
npm Tooling Bug Incorrectly Marks One-Character Packages as Security Holders
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.
@packmule/packmule
Advanced tools
Stubborn configuration generator for webpack.
packmule is an opinionated, plugin-based configuration-generator for webpack.
Biased Features
webpack options are pre-configured to work with HTTP2 at an optimum by default.packs have been developed and tested for specific use cases.Supported Functionality
pack with your own custom pack.pack to generate custom webpack configuration.raw pack to add custom webpack configuration directly.Run the following command within your project directory to install packmule.
npm install --save-dev @packmule/packmule
import Packmule, {
EntryPack,
OutputPack,
SassPack,
TypeScriptPack,
CompressionPack,
} from '@packmule/packmule';
const packmule = new Packmule(mode);
packmule.register(new EntryPack('main.ts'));
packmule.register(new OutputPack('public/', '/'));
packmule.register(new SassPack());
packmule.register(new TypeScriptPack());
if (mode === 'production') {
packmule.register(new CompressionPack());
}
return packmule.generate();
packmule will generate the following configuration for webpack on the fly, running webpack --mode production; it's simplified and shortened to make it more readable.
{
mode: 'production',
cache: false,
entry: {
main: ['source/main.ts'],
},
output: {
path: '/public',
publicPath: '/',
filename: '[name].[contenthash:8].js',
chunkFilename: 'chunks/[name].[contenthash:8].js',
},
resolve: {
extensions: ['.json', '.scss', '.sass', '.ts', '.tsx'],
},
plugins: [
HashedModuleIdsPlugin,
MiniCssExtractPlugin,
CompressionPlugin,
],
optimization: {
splitChunks: {
minSize: 0,
minChunks: 1,
},
minimizer: [
TerserPlugin,
OptimizeCssAssetsWebpackPlugin,
],
},
module: {
rules: [
{
test: /\.s[ac]ss$/,
use: ['node_modules/mini-css-extract-plugin/dist/loader.js',
{
loader: 'css-loader',
options: {
sourceMap: false,
},
},
{
loader: 'postcss-loader',
options: {
sourceMap: false,
},
},
{
loader: 'sass-loader',
},
],
},
{
test: /\.tsx?$/,
use: [{
loader: 'babel-loader',
options: {
cacheDirectory: false,
},
},
{
loader: 'ts-loader',
options: {
logLevel: 'warn',
transpileOnly: true,
onlyCompileBundledFiles: true,
compilerOptions: {
sourceMap: false,
},
},
},
],
},
],
},
}
FAQs
Stubborn configuration generator for webpack.
We found that @packmule/packmule demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.