This project is a simple web application that fetches and displays random jokes using the icanhazdadjoke API. The project is built using Webpack, Babel, and Sass.
-
Clone the repository:
git clone https://github.com/ViorelsS/JS_Webpack.git cd JS_Webpack
-
Install the dependencies:
npm install
To start the application in development mode, run:
npm run dev
This will start a development server and open the application in your default web browser.
Development The main source files are located in the src directory:
- src/index.js: The entry point of the application.
- src/generateJoke.js: Contains the function to fetch and display jokes.
- src/styles/main.scss: The main stylesheet for the application.
- src/template.html: The HTML template used by HtmlWebpackPlugin.
To build the project for production, run:
The output will be in the dist directory.
This project is licensed under the MIT License.