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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix static file serving for publicPath != / (fix#1176) #1180

Merged
merged 2 commits into from
Dec 27, 2017

Conversation

LinusBorg
Copy link
Contributor

@LinusBorg LinusBorg commented Dec 16, 2017

This PR disables contentBase in the devserver config, and instead adds CopyWebpackPlugin to copy the static files. (see #1176)

SinceCopyWebpackPlugin uses the dev-server's in-memory filesystem, there's nothing actually copied on disk, and /dist/ stays untouched as it should.

Thanks to @nkovacs for the idea!

@LinusBorg LinusBorg added this to Doing (current Milestone) in Roadmap Dec 17, 2017
@LinusBorg LinusBorg changed the title Fix static file serving for publicPath != / (close #1176) Fix static file serving for publicPath != / (fix#1176) Dec 21, 2017
@LinusBorg LinusBorg merged commit b30c4aa into develop Dec 27, 2017
@LinusBorg LinusBorg deleted the fix_static_file_serving branch December 31, 2017 12:47
LinusBorg added a commit that referenced this pull request Dec 31, 2017
* develop:
  bump template version
  fix bug with #1202
  Make CSS sourcemaps on by default
  Ensure page reloads in history mode serve index.html
  use old sourcemap option
  Add postcss-url to match postcss-import (#1115)
  Change engine>node{4 => 6} for template (#1206)
  Fix static file serving for publicPath != `/` (fix#1176) (#1180)
  Load, render template version using helper (#1202)
  fix typo in a comment (#1183)
  fix #1140
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Roadmap
Doing (current Milestone)
Development

Successfully merging this pull request may close these issues.

None yet

1 participant