From 0b8762132bcacc74099f4db84e6982fe30a2ac96 Mon Sep 17 00:00:00 2001 From: Nemo Date: Wed, 1 Sep 2021 18:06:35 +0800 Subject: [PATCH] fix: adjust root dir of wds The `npm run serve` script does not specify the correct root dir for wds, so i adjusted it. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ab02c6bd..779f0a3c 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "docs:assets": "cp node_modules/prismjs/themes/prism-okaidia.css docs/", "docs:serve": "wds --root-dir=docs --node-resolve --watch", "analyze": "wca analyze \"src/**/*.ts\" --outFile custom-elements.json", - "serve": "wds --watch", + "serve": "wds -r dev --watch", "test": "wtr", "test:watch": "npm run test -- --watch", "checksize": "rollup -c ; cat my-element.bundled.js | gzip -9 | wc -c ; rm my-element.bundled.js"