Closed yssource closed 9 years ago
what does it mean watch is not working? please give details on the command you are running, the files you are modifying so we can reproduce the issue
also your comment does not include screen shot...
sorry didn't mean to close the issue
Also, it looks like you meant to upload a screenshot but there isn't one attached...
@yssource havent heard from you... closing this issue for now, please feel free to reopen
I'm sorry responding to you so lately. I want to use your project configed with webpack.
For instance. change this line '
Then try to change the./index.html again, '
For a workaround, I add the following codes in file ./task/serve.js to make it refresh automatically.
bs.watch(constants.clientFolder, { ignoreInitial: true }, function() { gulp.start('html'); });
My second question seems to be concerning with webpack.
I add a new entry for webpack config in file ./glue_tasks/common/constants.js It looks like this
webpack: {
src: {
bundle: [
'webpack/hot/dev-server',
'webpack-dev-server/client?http://localhost:8081',
'./main{{targetSuffix}}.js'
],
'vendors': ['ionic-bundle']
}
},
and in file webpack.config.js
plugins: [ new webpack.HotModuleReplacementPlugin(), ... ]
As a result, lots of error logs will be output. GET http://localhost:8081/socket.io/?EIO=3&transport=polling&t=1446801519053-399 net::ERR_CONNECTION_REFUSED I wander to know how to config the hot module replace correctly with your project.
1) Watch is not working, after the first time files being changed . 2) How to configure and use 'webpack-dev-server', if I wanna use the function for 'hot module loading' HotModuleReplacementPlugin 3) I add the codes in file ./gulp_tasks/common/constants.js. webpack: { src: [ 'webpack/hot/dev-server', 'webpack-dev-server/client?http://localhost:5000', './main{{targetSuffix}}.js' ] }
and add codes in file ./webpack-config.js new webpack.HotModuleReplacementPlugin(); But, it does not work.
![Uploading Screenshot from 2015-11-01 02-06-10.png…]()