Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally output with version suffix #2

Closed
FlorianRappl opened this issue Jan 20, 2022 · 0 comments
Closed

Optionally output with version suffix #2

FlorianRappl opened this issue Jan 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@FlorianRappl
Copy link
Contributor

Optionally the public path should be changed from {publicPath} to {publicPath}{version}/, e.g., for / to /1.2.3/ or from /docs/ to /docs/1.2.3/.

OPTION 1 The output structure would be changed, too, where a folder with the version would be added containing the actual index.html. The "root" folder would then have an html file that only redirects to the specific version.

OPTION 2 Alternatively, the version can be only appended on build with --append-version or similar. In this case the output is in the original folder, but the paths all changed. This way you'd build twice for a new version - once to supply the version-less output to the root folder, and once to supply the version-suffixed output to a version directory.

Personally, I'd like OPTION 1 more as it would just be a single build and I could just upload to FTP and done. OPTION 2 you can do today by just changing the publicPath, too.

@FlorianRappl FlorianRappl added the enhancement New feature or request label Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant