Replies: 2 comments 2 replies
-
As far as I know, you can't publish to two output directories at once. So your package.json "scripts": {
"build:docs": "eleventy --output=docs",
"build:vdocs": "eleventy --output=v2.1/docs",
"build": "npm run build:docs && npm run build:vdocs"
} Now when you run npm run build it should theoretically build the site once for Probably not very efficient (depending on how much data fetching your site does), but maybe easier than setting up symlinks and stuff. |
Beta Was this translation helpful? Give feedback.
-
I'll attempt this and report back. See, what I get. |
Beta Was this translation helpful? Give feedback.
-
For example, I want
/docs
and/v2.1/docs
Beta Was this translation helpful? Give feedback.
All reactions