-
Notifications
You must be signed in to change notification settings - Fork 65
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: switch over to webpack-dev-server #105
Fix: switch over to webpack-dev-server #105
Conversation
@@ -52,7 +52,13 @@ const cli = meow(` | |||
}, | |||
port: { | |||
type: 'string', | |||
alias: 'p' | |||
alias: 'p', | |||
default: '8080' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed to supply these because i think webpack-serve
was previously providing this default
@@ -145,8 +151,7 @@ switch (cmd) { | |||
const dev = require('./lib/dev') | |||
dev(opts) | |||
.then(({ server }) => { | |||
const { port } = server.options | |||
const url = `http://localhost:${port}` | |||
const url = `http://${server.host}:${server.port}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now we report the listening host interface
"start": "./cli.js docs", | ||
"build": "./cli.js build docs", | ||
"start": "node ./cli.js docs", | ||
"build": "node ./cli.js build docs", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on windows 10, (powershell/cmd.exe) hashbangs have no effect.
Not sure how to deal with the failing test. It's choking on classnames. |
Thanks @airtonix! This is looking great so far. I'm going to take this for a spin shortly. Btw, to fix the snapshot failure you can regenerate the snapshot with |
Cool, I'll try tackle that tonight. 10.30 am right now
…On Thu, Oct 18, 2018, 8:20 AM John Otander ***@***.***> wrote:
Thanks @airtonix <https://github.com/airtonix>! This is looking great so
far. I'm going to take this for a spin shortly. Btw, to fix the snapshot
failure you can regenerate the snapshot with npm t -- -u.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#105 (comment)>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AADvKQ4GaAemGzthi7gEccy9KWaWeOXiks5ul6Y_gaJpZM4XeFum>
.
|
not sure why 5973ff1 failed. I updated the snapshots |
./stumped
|
…er' of github.com:airtonix/x0 into feature/104-replace-webpack-serve-with-webpack-dev-server
Ok this works on my personal website, you can try it out: uses docker, |
Thanks for this @airtonix 🙏! I'll be reviewing and testing this PR sometime this week and will get a release cut. |
@airtonix i tested out your branch and i think you need to add the |
Fixes #104