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

Fixed webpack to close with kitto.server #124

Closed
wants to merge 1 commit into from

Conversation

davejlong
Copy link
Member

The --stdin flag wasn't added until a later version that the default for webpack-dev-server. This is meant as a hotfix for the larger task of updating Webpack.

The `--stdin` flag wasn't added until a later version that the default for webpack-dev-server. This is meant as a hotfix for the larger task of updating Webpack.
@coveralls
Copy link

coveralls commented Oct 25, 2017

Coverage Status

Coverage remained the same at 88.732% when pulling 79c4d09 on davejlong-patch-1 into ff4dbb5 on master.

@zorbash
Copy link
Member

zorbash commented Oct 25, 2017

@davejlong --stdin was added v1.15.0 see: https://github.com/webpack/webpack-dev-server/blob/v1.15.0/bin/webpack-dev-server.js#L26

This means c3bdd31 has broken the behaviour where killing mix kitto.server would stop the webpack-dev-server.

The easy fix is to bump webpack-dev-server to @1.15.0. Can you change it from this PR?

@@ -3,7 +3,7 @@ defmodule Mix.Tasks.Kitto.Server do
require Logger

@watchers webpack: [bin: "./node_modules/.bin/webpack-dev-server",
opts: ["--stdin", "--progress"]]
opts: ["--watch", "--progress", "--colors"]]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot find the --watch and --colors options.
There's --color though, which appears in
https://github.com/webpack/webpack-dev-server/blob/v2.2.0/bin/webpack-dev-server.js#L91

is not compatible with webpack <= 2.0.0 will you also push changes to bump https://github.com/kittoframework/kitto/blob/master/installer/templates/new/package.json#L25

@zorbash zorbash closed this Jun 20, 2019
@zorbash zorbash deleted the davejlong-patch-1 branch June 20, 2019 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants