Skip to content

Commit

Permalink
Update build task to account for public url
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfdsilva committed Jul 5, 2022
1 parent 269694d commit ddcc941
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ function parcelBuild(cb) {
// Build the app using parcel. Since the build task finishes, we have to
// listen for it to mark the gulp task as finished.

const args = ['--config', parcelConfig];
const args = [
'--config',
parcelConfig,
'--public-url',
process.env.PUBLIC_URL || '/'
];

const pr = spawn('node', [parcelCli, 'build', ...args, ...parcelTarget], {
stdio: 'inherit'
Expand Down

0 comments on commit ddcc941

Please sign in to comment.