shipmnts / editor-hub

Powerful and customizable rich text editor component for React applications
10 stars 5 forks source link

Feature / add watch script #17

Closed RameezIbrahimOfficial closed 1 day ago

RameezIbrahimOfficial commented 2 days ago

Description

This PR adds a watch script to the package.json to automate the rebuild process upon file changes, which will improve development workflow. The webpack.config.js file was also updated to configure the watchOptions, optimizing performance and ensuring that file changes trigger automatic rebuilds without including unnecessary files. This change eliminates the need for manual rebuilds during development. Also Documentation is updated to include usage instructions for the new watch command

Relevant Motivation & Context

Developers previously needed to manually rebuild the project after every change, which slowed down the development process. Adding a watch script and configuring watchOptions will improve efficiency by automatically rebuilding on changes.

Dependencies Required

No additional dependencies are required for this change.

Fixes

Fixes #11

Type of change

How Has This Been Tested?

This change has been tested by:

  1. Running yarn watch and observing automatic rebuilds upon file changes.
  2. Verifying that the dist folder is updated correctly after changes.
  3. Running yarn start to confirm that the Webpack Dev Server serves the updated project with hot-reloading.

Steps to Reproduce:

Checklist:

Screenshots

N/A for this change


RameezIbrahimOfficial commented 2 days ago

@devcodes9 Is it ok now.