You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I have found this action to be very useful in my automated workflow. However, I am looking to develop mobile apps using the same production codebase. Unfortunately, the vue.config.js will always insert the GH Pages sub-path whenever a production build is run. This causes the dist to be unusable for anything but GH Pages as other applications expect to use root.
At the moment this Github Action is the only thing that uses the sub-path. I would appreciate the ability to specify a build target rather than assume it's "npm run build". This would let me specify a new target that uses a mode other than "production" so that GH Pages gets the path it needs without polluting the other types of distributions.
Hey! I don't know if you ever got this solved, but here's my solution.
I've created a fork of the package, changing the npm run build to npm run build-pages.
You can add a build-pages action to your package.json as below: "build-pages": "vite build --base=/{REPO_NAME}/",
Setting the base var in vite.config.js/vue.config.js back to '/' will let you run your prod build as normal, then create a pages build with the modified base path.
Hello. I have found this action to be very useful in my automated workflow. However, I am looking to develop mobile apps using the same production codebase. Unfortunately, the
vue.config.js
will always insert the GH Pages sub-path whenever a production build is run. This causes the dist to be unusable for anything but GH Pages as other applications expect to use root.At the moment this Github Action is the only thing that uses the sub-path. I would appreciate the ability to specify a build target rather than assume it's "npm run build". This would let me specify a new target that uses a mode other than "production" so that GH Pages gets the path it needs without polluting the other types of distributions.
Example in Vue - https://cli.vuejs.org/guide/mode-and-env.html#example-staging-mode
The text was updated successfully, but these errors were encountered: