humanmade / humanmade/webpack-helpers
Adjust messaging of dev server
- Dominant language
- JavaScript
- Stars
- 29
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
The dev server default output, upon starting up, indicates that a server is running on localhost at a specific port. Because this server is meant to run _alongside_ a separate WordPress install (usually either Vagrant with Chassis or Docker with Altis Local Server), this can be confusing because it seems to imply your site could be accessible from the Webpack server, when Webpack is _solely_ responsible for providing the built bundled files.
Sample output:
```
> webpack-dev-server --config .config/webpack.config.dev.js
ℹ 「wds」: Project is running at https://localhost:9090/
ℹ 「wds」: webpack output is served from https://localhost:9090/content/mu-plugins/my-plugin/build/
ℹ 「wds」: Content not from webpack is served from /hm/projects/my-project
```
It would be good to see if we can add a logging message indicating that the main site should still be accessed via the underlying WP dev environment hostname.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.