From f8424be08e15bfec7738388a7ab863c6094e0477 Mon Sep 17 00:00:00 2001 From: Devid Farinelli Date: Tue, 5 Mar 2019 16:31:40 +0100 Subject: [PATCH] docs(scaffold): add link option for local --- SCAFFOLDING.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/SCAFFOLDING.md b/SCAFFOLDING.md index 1c1a9b20fde..80e5b5c79a4 100644 --- a/SCAFFOLDING.md +++ b/SCAFFOLDING.md @@ -28,10 +28,18 @@ webpack-cli init #### Running a scaffold locally When the scaffold package is on you local file system you should pass its path to `init`: -```js +```bash webpack-cli init path/to/your/scaffold ``` +Or you can create a global module and symlink to the local one: + +```bash +cd path/to/my-scaffold +npm link +webpack-cli init my-scaffold +``` + #### Running a scaffold from npm If the package is on npm, its name must begin with `webpack-scaffold` and can be used running: