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

Add watch mode #305

Closed
wants to merge 1 commit into from
Closed

Add watch mode #305

wants to merge 1 commit into from

Conversation

cretueusebiu
Copy link

Adds --watch to run webpack in watch mode.

@@ -189,7 +191,8 @@ var webpackConfig = {
babel: babelOptions
}
})
]
],
watch: options.watch
Copy link
Collaborator

Choose a reason for hiding this comment

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

no need to set this?

@@ -290,6 +293,12 @@ if (!options.disableWebpackConfig) {

try {
var compiler = webpack(webpackConfig)

if (options.watch) {
compiler.watch({
Copy link
Collaborator

Choose a reason for hiding this comment

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

should replace the compiler.run below with this

@egoist
Copy link
Collaborator

egoist commented Feb 1, 2017

Thanks for the PR but I decided to make a new one at #322 due to no response and there're many more changes needed than I expected.

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.

2 participants