8000 GitHub - nodoubtz/webpack-cli: Webpack's Command Line Interface
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nodoubtz/webpack-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpack-cli

A command-line interface for webpack, designed to make configuration, execution, and management of webpack projects easier and more efficient.

Features

  • Easy configuration: Quickly set up and modify your webpack projects.
  • Project execution: Run build, serve, and watch commands from the CLI.
  • Management tools: List, add, or remove loaders and plugins.
  • Duplicate code detection: Find and fix duplicate code in your project.
  • Security: Best practices to help keep your codebase secure.
  • Error handling: Clear reporting and guidance to resolve configuration and runtime errors.

Installation

npm install -g webpack-cli

Or as a dev dependency:

npm install --save-dev webpack-cli

Usage

Basic usage:

webpack-cli [command] [options]

Common Commands

Command Description
init Initialize a new webpack project
build Build your project
serve Start a development server
config View or edit webpack configuration
analyze Analyze bundle for duplicate code
fix Attempt to fix detected issues

Example:

webpack-cli build --mode production

Security

  • Avoid committing sensitive information in config files.
  • Use latest versions of loaders and plugins.
  • Run webpack-cli analyze to scan for potential duplicate or vulnerable code.

Troubleshooting

  • If you encounter errors, use webpack-cli fix to automatically resolve common issues.
  • For detailed logs, run commands with the --verbose flag.

Contributing

Contributions are welcome! Please open an issue or submit a pull request. Before contributing, review the Code of Conduct and Contributing Guidelines if available.

License

This project is licensed under the MIT License.


For more details and advanced usage, see the webpack documentation.

About

Webpack's Command Line Interface

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published
3878

Languages

  • JavaScript 64.8%
  • TypeScript 25.4%
  • Smarty 9.7%
  • Other 0.1%
0