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
This will write the combined.js to the ./dist/project/scripts/ folder. However, the dist folder typically represents the document root of the github page, so I don't have a dist/project folder, I just have dist/scripts/. In order to deploy the dist folder to the gh-pages branch, I have to move the files in ./dist/project/ up to just dist. This feels clunky.
Is there a way to tell gulp-useref to write the combined file to one path with the URL it replaces being something else? In this case, I want to write combined.js to dist/scripts/combined.js and link to it in the HTML as /project/scripts/combined.js. Finding the files isn't the problem; I want the output file and the URL referenced in the gulp.src files to be be different.
The text was updated successfully, but these errors were encountered:
So I have been learning gulp and working to deploy to a Github Page, so I setup the build reference like this:
I'll trigger this with a gulp task that might look like this:
This will write the combined.js to the
./dist/project/scripts/
folder. However, the dist folder typically represents the document root of the github page, so I don't have adist/project
folder, I just havedist/scripts/
. In order to deploy the dist folder to thegh-pages
branch, I have to move the files in./dist/project/
up to justdist
. This feels clunky.Is there a way to tell gulp-useref to write the combined file to one path with the URL it replaces being something else? In this case, I want to write combined.js to
dist/scripts/combined.js
and link to it in the HTML as/project/scripts/combined.js
. Finding the files isn't the problem; I want the output file and the URL referenced in thegulp.src
files to be be different.The text was updated successfully, but these errors were encountered: