diff --git a/docs/builds/guides/development/custom-builds.md b/docs/builds/guides/development/custom-builds.md index 26cb24de53f..1ee26e9d1e4 100644 --- a/docs/builds/guides/development/custom-builds.md +++ b/docs/builds/guides/development/custom-builds.md @@ -163,6 +163,16 @@ yarn run build You can validate whether your new build works by opening the `sample/index.html` file in a browser (via HTTP, not as a local file). Make sure to **clear the cache**. +#### Starting the local development server + +To make development easier, you may optionally start a local development server by executing the following command: + +```bash +yarn run start +``` + +This will start `webpack-dev-server` with source watching and live reloading (available at `http://localhost:8080/` by default). + ## Updating the build You may decide to update your build at any time. Since it is a fork of the official build, you can simply merge the changes that happened meanwhile in that build, using Git commands: diff --git a/packages/ckeditor5-build-balloon-block/package.json b/packages/ckeditor5-build-balloon-block/package.json index b375c0c922b..f4b6b6a6d4a 100644 --- a/packages/ckeditor5-build-balloon-block/package.json +++ b/packages/ckeditor5-build-balloon-block/package.json @@ -57,7 +57,8 @@ "style-loader": "^1.2.1", "terser-webpack-plugin": "^3.0.2", "webpack": "^4.43.0", - "webpack-cli": "^3.3.11" + "webpack-cli": "^3.3.11", + "webpack-dev-server": "^3.11.2" }, "engines": { "node": ">=12.0.0", @@ -73,6 +74,7 @@ "directory": "packages/ckeditor5-build-balloon-block" }, "scripts": { + "start": "webpack-dev-server", "build": "webpack --mode production", "preversion": "npm run build" } diff --git a/packages/ckeditor5-build-balloon-block/sample/index.html b/packages/ckeditor5-build-balloon-block/sample/index.html index 0122515dfcd..72b69c898f5 100644 --- a/packages/ckeditor5-build-balloon-block/sample/index.html +++ b/packages/ckeditor5-build-balloon-block/sample/index.html @@ -20,13 +20,13 @@

Sample

This is an instance of the balloon block editor build.

- Autumn fields + Autumn fields

You can use this sample to validate whether your custom build works fine.

- + + + + +