Global Install
npm install -g generate-webpack
With npx
npx generate-webpack
OR
npx gwp
generate-webpack projectname -options
OR
gwp projectname -options
Options | Short | templates | Description |
---|---|---|---|
--core= |
-c |
webpack, three, three-basic, three-shader/three-shaders, three-master. For info click here. |
Select Core Template. |
--nopkg |
-n |
none | Stop npm package auto installation. |
Generate-Webpack sets up a comprehensive webpack project template that includes:
- A basic project structure with directories for source code, assets, and build output.
- An initial
index.html
file along with associated assets. - Webpack configuration files for development and production environments.
- Babel configuration for modern JavaScript support.
- Loaders and plugins for handling CSS, images, and other assets.
- Dev server setup for easy development and testing.
- Sample entry and module files to help you get started.
Core | Description |
---|---|
three |
Full three.js template via webpack with all needed things. |
three-basic |
Basic three.js template with only essential things. |
three-shader |
Basic three.js template with custom shaders {vertex and fragment}. |
three-master |
Master three.js template with custom shaders ,model,glass material,postprocessing ,etc. |
While Generate-Webpack provides a solid starting point for webpack projects, you're encouraged to customize it to fit your specific project requirements. You can modify the webpack configuration files, add or remove loaders and plugins, and organize your source code according to your preferences.
If you encounter any issues, have suggestions for improvements, or would like to contribute to the development of Generate-Webpack, feel free to open issues and pull requests on the GitHub repository.
Generate-Webpack was created by Aayush Chouhan.
Generate-Webpack is open-source software licensed under the MIT License.
For any questions or inquiries, you can reach us at aayushchouhan24@gmail.com.