Parcel: 馃悰 relative public path option

Created on 12 Dec 2017  路  2Comments  路  Source: parcel-bundler/parcel

馃 Expected Behavior

I want to deploy to project to Github Pages. Thus, its convenient to get assets based on a relative public path.

馃槸 Current Behavior

Default behavior is to reference assets from /dist/file.ext. We can use --public-path "/" to serve assets from /file.ext. But --public-path "" doesn't work and I want to serve assets from the relative path file.ext.

  • Using Parsel v1.2.0

Most helpful comment

Yes. Actually, I just discovered --public-url '.' works :)

All 2 comments

Hello @ccorcos,
you mean --public-url ?

Yes. Actually, I just discovered --public-url '.' works :)

Was this page helpful?
0 / 5 - 0 ratings