Closed dotnetCarpenter closed 5 years ago
hi.. --directory
is an option from the lws-static middleware but you don't have that middleware included in your stack.
If you run this command you'll see that --directory
is not listed in the options: (npx
runs the local installation)
npx ws --stack middleware.js --help
That's because the lws-stack middleware was not loaded.. try this command:
npx ws --stack middleware.js lws-static --help
You should now see --directory
listed so you can now run something like:
npx ws --stack middleware.js lws-static --directory docs/
local-web-server: 2.6.1 lws: 1.3.2
Steps to reproduce:
docs
(mkdir docs
)middleware.js
middleware.js
./node_modules/.bin/ws -d docs/ --stack middleware.js
Error output: