
Security News
PHP Foundation Says Chainguard Broke Security Embargo Ahead of Emergency Patches
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.
@axew/jugg
Advanced tools
What is Jugg?
![]()
A front-end scaffold 🛠️ work with Webpack.
# start a webpack-dev-server
$ jugg dev
# build with webpack
$ jugg build
$ jugg dev -h
Usage: dev [options]
start dev server
Options:
-p, --port [port] dev server port
--noDevClients [noDevClients] when set, do not add dev clients to webpack entry (default: false)
-h, --help output usage information
Since webpack-dev-server v3.2.0, automatically add the HMR plugin when hot or hotOnly is enabled. Can set
noDevClientsto disable built-in config to entry.
$ jugg build -h
Usage: build [options]
exec build
Options:
-h, --help output usage information
Simple directory can be something like this, default entry can be src/index.{tsx?|jsx?}. tsconfig.json is necessary only when you use TypeScript.
.
├── src
│ └── index.ts
└── tsconfig.json
Create a file named .juggrc.js, .juggrc.ts, jugg.config.js, etc. Or write config object in package.json.
interface JuggConfig {
/**
* publicPath of webpack, default '/'
*/
publicPath?: string;
/**
* output path of webpack, default 'dist'
*/
outputDir?: string;
plugins?: PluginCfgSchema[];
define?: { [k: string]: any };
/**
* open chunks config? default true
*/
chunks?: boolean;
/**
* sourceMap, default true
*/
sourceMap?: boolean;
webpack?: JuggWebpack;
/**
* ts-loader custom transformers, only work when ts-loader is enabled
*/
tsCustomTransformers?: {
before?: PluginCfgSchema[];
after?: PluginCfgSchema[];
};
/**
* set bundle file name in production env, default `[name].[chunkhash]`.
* affect js, css.
*/
filename?: string;
/**
* built-in base webpack html plugin config.
* set false to rm plugin.
*/
html?: false | KeyValuePair;
/**
* config of css, less, postcss...
*/
css?: {
loaderOptions?: {
/**
* https://github.com/webpack-contrib/css-loader#options
*/
css?: any;
/**
* http://lesscss.org/usage/#command-line-usage-options
*/
less?: any;
/**
* https://github.com/postcss/postcss-loader/tree/v3.0.0#options
* when `false`, disable the `postcss`
*/
postcss?:
| {
config?: {
context?: any;
path?: any;
};
/**
* when `false`, disable built-in plugins
*/
plugins?: any;
[k: string]: any;
}
| false;
};
};
}
type JuggWebpack = webpack.Configuration | (
param: {
config: webpackChain.Config;
webpack: webpack.Configuration;
}
) => void | webpack.Configuration;
type PluginCfgSchema = string | [string, { [k: string]: any }?];
none, disbale fork-ts-checker-webpack-pluginnone, disbale hard-source-webpack-pluginTS or JSBoth TS and JS can be used together in a project with jugg. There are several situations with handleing TS and JS:
tsconfig.json, then jugg will open ts-loader and use it to compile ts, tsx, js, tsx. babel is needless here.
.juggrc.js with jugg-plugin-babel. Babel plugin will rewrite built-in config of ts-loader for js and jsx and handle then with itself.
compileTs: true in jugg-plugin-babel config will clean all built-in ts-loader options. Babel handles all the file.
import() works with "module": "esnext" in tsconfig.json, detail.FAQs
A front-end scaffold 🛠️ work with Webpack.
The npm package @axew/jugg receives a total of 3 weekly downloads. As such, @axew/jugg popularity was classified as not popular.
We found that @axew/jugg 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.

Security News
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.

Security News
PHP releases emergency patches for two critical RCE vulnerabilities as agencies urge organizations to take unpatched sites offline.

Threat Research
/Security News
A supply chain attack compromised LiteLLM 1.107.0 on PyPI and Docker, spreading malware that steals cloud credentials, developer secrets, and AI provider keys.