Webpack configuration utilities providing user config and CLI option management for Ice framework build systems
—
Pending
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Pending
The risk profile of this skill
Command-line options for controlling development server behavior, build analysis tools, and debugging features during start and build commands.
CLI flags that control development server behavior and features.
interface DevelopmentServerOptions {
/**
* Enable HTTPS in development server
* Generates and uses self-signed certificates automatically
* @commands ['start']
*/
'--https'?: boolean;
/**
* Disable hot reload functionality
* Prevents automatic browser refresh on file changes
* @commands ['start']
*/
'--disable-reload'?: boolean;
/**
* Disable mock server
* Prevents API mocking functionality from starting
* @commands ['start']
*/
'--disable-mock'?: boolean;
/**
* Disable automatic browser opening
* Prevents browser from opening automatically on server start
* @commands ['start']
*/
'--disable-open'?: boolean;
/**
* Disable assets processing
* Skips asset processing for faster development builds
* @commands ['start']
*/
'--disable-assets'?: boolean;
/**
* Enable debug runtime
* Enables additional debugging information and runtime checks
* @commands ['start']
*/
'--debug-runtime'?: boolean;
}Usage Examples:
# Start development server with HTTPS
npm start -- --https
# Start with hot reload disabled
npm start -- --disable-reload
# Start without opening browser
npm start -- --disable-open
# Start with multiple options
npm start -- --https --disable-mock --debug-runtimeCLI flags for analyzing and debugging build output and bundle composition.
interface BuildAnalysisOptions {
/**
* Enable webpack bundle analyzer
* Opens interactive bundle size analysis in browser
* @commands ['start', 'build']
*/
'--analyzer'?: boolean;
/**
* Specify port for bundle analyzer
* Sets custom port for analyzer server (default: 8888)
* @commands ['start', 'build']
*/
'--analyzer-port'?: number;
}Usage Examples:
# Analyze bundle during development
npm start -- --analyzer
# Analyze production build
npm run build -- --analyzer
# Use custom analyzer port
npm run build -- --analyzer --analyzer-port 9999CLI flags for controlling build modes and behavior.
interface BuildModeOptions {
/**
* Set build mode
* Controls environment-specific build optimizations
* @commands ['start', 'build']
*/
'--mode'?: 'development' | 'production' | string;
}Usage Examples:
# Set specific build mode
npm start -- --mode development
# Production mode for debugging
npm run build -- --mode productionWhen --https flag is used, the system automatically:
// Internal implementation reference
const httpsConfig = {
key: fs.readFileSync(keyPath),
cert: fs.readFileSync(certPath),
ca: fs.readFileSync(caPath)
};When --analyzer flag is used, the system:
When --disable-reload flag is used:
When --disable-mock flag is used:
When --debug-runtime flag is used:
CLI options integrate seamlessly with user configuration options:
// CLI options override user config when specified
module.exports = {
// User config sets default
mock: true,
// --disable-mock CLI flag overrides this setting
// Final effective value: false (when CLI flag used)
};Each CLI option is restricted to specific commands:
--https, --disable-reload, --disable-mock, --disable-open, --disable-assets, --debug-runtime--analyzer, --analyzer-port, --mode# Valid usage
npm start -- --https # ✓ https works with start
npm run build -- --analyzer # ✓ analyzer works with build
# Invalid usage would be ignored
npm run build -- --https # ✗ https ignored in build command