-
Notifications
You must be signed in to change notification settings - Fork 23
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
Weird static files behaviour with and without --port #69
Comments
Additional note: running without any flags produces a result similar to
|
The issue is still on. However as a workaround, I use webpack with url-loader to preload static image files into the bundle as data URLs. |
The problem is that the electron integration currently doesn't work with the |
If you want to use browserify, you can also use brfs instead of the url-loader |
@juliangruber Thanks, static files with electron would be very convenient. Great :) |
3.0.1 |
Works great! Returns also 404 for missing files, as it should. I am using it with webpack-tape-run. Thanks to your diligence, I predict a good future for this module! Good job. |
Consider a test suite
test/static.test.js
below. It contains single test case where a static image is fetched and response headers and body inspected.Assume
test/assets/image.png
is a valid PNG image. Let us run the suite. Output indicates that the response contains a HTML document and not a trace ofimage.png
:However, if we replace
--static test/assets
flag with--port 8000
the response suddenly contains the image.png. This makes no sense!This might have something to do with #61 that also deals with unexpected behavior with
--port'
.In addition, if
--node
is added, aTypeError: Failed to fetch
is thrown. I am becoming hopeless.The text was updated successfully, but these errors were encountered: