See the full documentation of webpack init command. When enabled, the default answer for each question will be used. Location of where to generate the configuration. my-app -force -template =default Generation Path npx webpack init Įxample npx webpack init. Used to initialize a new webpack project. npx webpack build Įxample npx webpack build -config. Run webpack (default command, can be omitted). Output the version number of webpack, webpack-cli and webpack-dev-server. Webpack-cli offers a variety of commands to make working with webpack easier. If you want to run webpack using npx please make sure you have webpack-cli installed. Read the installation guide if you don't already have webpack and CLI installed. Any parameters sent to the CLI will map to a corresponding parameter in the configuration file. For proper usage and easier distribution of this configuration, webpack can be configured with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |