The Webpack App Starter is a boilerplate for JavaScript applications. It includes development dependencies like Babel, CSS loaders, HTML Webpack Plugin, and Sass compiler. The project uses axios for API requests. To use, clone the repository, install dependencies, customize configurations, and start the development server. Contributions are welcome following the guidelines in the readme. The project is under the MIT License.
Webpack App Starter Dependencies Documentation
- @babel/preset-env (
^7.23.9
): Babel preset for compiling modern JavaScript syntax to older versions. - babel-loader (
^8.3.0
): Webpack loader for transpiling JavaScript files using Babel. - css-loader (
^6.10.0
): Webpack loader for loading CSS files. - html-webpack-plugin (
^5.6.0
): Webpack plugin for generating HTML files with injected bundles. - mini-css-extract-plugin (
^2.8.0
): Webpack plugin for extracting CSS into separate files. - sass (
^1.71.1
): Sass compiler for transforming Sass files to CSS. - sass-loader (
^12.6.0
): Webpack loader for loading Sass files. - style-loader (
^3.3.4
): Webpack loader for injecting CSS styles into the DOM. - webpack (
^5.90.3
): Module bundler for JavaScript applications. - webpack-bundle-analyzer (
^4.10.1
): Webpack plugin for analyzing bundle sizes. - webpack-cli (
^4.10.0
): Command-line interface for running Webpack commands. - webpack-dev-server (
^4.15.1
): Development server for serving Webpack bundles.
- axios (
^0.26.1
): Promise-based HTTP client for making API requests.
To use this project, follow these steps:
- Clone the repository to your local machine.
git clone https://github.com/darshangaikwad4114/Webpack-app-starter.git
- Install the required dependencies by running
npm install
oryarn install
. - Customize the configuration files according to your project requirements.
- Start the development server by running
npm start
oryarn start
. - Open your browser and navigate to
http://localhost:8080
(or the specified port). - Begin developing your JavaScript application using the provided environment.
To configure the Webpack App Starter, follow these steps:
- Open the project's root directory.
- Locate the
webpack.config.js
file. - Open the
webpack.config.js
file in a text editor. - Modify the configuration options according to your project requirements.
If you would like to contribute to this project, please follow these guidelines:
- Fork the repository and create a new branch for your feature or bug fix.
- Make your changes and ensure that the project builds successfully.
- Write tests to cover your changes, if applicable.
- Submit a pull request with a clear description of your changes and their purpose.
This project is licensed under the MIT License.