From b9b9ddae09328021d10b30b8ec09306f02b40a0d Mon Sep 17 00:00:00 2001 From: DBuldakov Date: Mon, 26 Feb 2024 14:37:21 -0500 Subject: [PATCH] Update README.md adding missing steps to the build instructions --- samples/000-HelloWorld/README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/samples/000-HelloWorld/README.md b/samples/000-HelloWorld/README.md index 0d261fc..043edfa 100644 --- a/samples/000-HelloWorld/README.md +++ b/samples/000-HelloWorld/README.md @@ -32,9 +32,17 @@ Add the plugin to a button and call the plugin with the parameters. It does not 2. Build and compress the plugin - `webpack --mode=production` + `webpack --mode=production` -3. Create the zip file that can be uploaded to OFS + you might also need to use this command instead, if the webpack folder is not added to the PATH list + + `./node_modules/.bin/webpack --mode=production` + +3. Copy index.html from the project root folder to the dist folder + + `cp index.html dist/` + +4. Create the zip file that can be uploaded to OFS `cd dist; zip plugin.zip index.html main.js`