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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 publicURL with development server #782

Closed
mischnic opened this issue Feb 10, 2018 · 2 comments
Closed

馃悰 publicURL with development server #782

mischnic opened this issue Feb 10, 2018 · 2 comments

Comments

@mischnic
Copy link
Member

馃帥 Configuration (.babelrc, package.json, cli command)

parcel src/index.html --public-url ./
or
parcel src/index.html --public-url /

馃 Expected Behavior

The site should be served at localhost:1234.

馃槸 Current Behavior

  • with parcel src/index.html --public-url ./:

    • http://localhost:1234/ properly serves index.html
    • every request serves index.html (i.e. http://localhost:1234/423958b25b168623f5a455b67f81b487.js returns the index.html file)
  • with parcel src/index.html --public-url /:

馃實 Your Environment

Software Version(s)
Parcel 1.5.1
Node v9.5.0
npm/Yarn yarn 1.3.2
Operating System macOS 10.12.6
@mischnic mischnic changed the title 馃悰 publicURL with development build 馃悰 publicURL with development server Feb 10, 2018
This was referenced Feb 17, 2018
ry added a commit to propelml/propel_deps that referenced this issue Mar 9, 2018
This fixes parcel-bundler/parcel#782
but it needs to be cleaned up.
ry added a commit to propelml/propel_deps that referenced this issue Mar 10, 2018
This fixes parcel-bundler/parcel#782
but it needs to be cleaned up.
devongovett pushed a commit to ry/parcel that referenced this issue Mar 22, 2018
When serving HTML bundle with publicUrl="/", allow the server
to send static assets other than html.
@Shakeskeyboarde
Copy link

Shakeskeyboarde commented Aug 15, 2018

Am I missing something? I still have this problem even though this issue is closed?

Parcel 1.9.7

@wxs77577
Copy link

wxs77577 commented Mar 6, 2019

Still have this problem too.
I need to build for hyber-app, so I can't use '/main.js' as the url, I need to use './main.js'.
But when I use parcel --public-url ./ index.html it's built successfully but I can't access any js file or css file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants