When testing in IE8, LiveReload throws errors since web sockets is not supported. Is there a way to configure yeoman to disable LiveReload?
相关问题
- Calling a yeoman generator after a generator has f
- How i can use yeoman to work with Sass files?
- Couldn't find the 'yo' binary. Make su
- How to generate unit tests from a JS module automa
- ui-router not rendering views
相关文章
- How to ignore files in Yeoman with fs.copyTpl
- Getting error while scaffolding angular app
- Clojure live browser reload on Linux
- Development mode for AngularJS using GruntJS
- grunt serve from a fresh Yeoman install returns -
- gulp typescript throws error TS2300: Duplicate ide
- Does Sublime Text support live editing of CSS/SASS
- How to install latest unstable AngularJS component
IE8 isn't supported by Yeoman, for good reason.
However, you could do what Allan describes, or you could override the
server
task, by putting this in your Gruntfile:Yeoman Livereload consists of two parts: the middleware that inserts the livereload snippet, and the livereload target in the watch task. To disable livereload, remove both:
Livereload snippet at the top of the Gruntfile:
Livereload task in Watch:
And the middleware that inserts the snippet:
For updates on fixing the livereload-connect issues in Yeoman, track this issue: https://github.com/yeoman/generator-webapp/issues/63
Put this in your Gruntfile:
Yes there is one I know.
Gruntfile.js
reload:
inwatch:
It will look something like this:
And after you have removed it something like this:
I think i have seen a commandline flag, but I was unable to find it.
Try to use
<!--[if !IE]><!--></body><!--<![endif]--><!--[if IE]></body><!--<![endif]-->
instead of</body>
.Generator would try to replace first
</body>
element and add livereload snippet before it, so code would be placed in invisible for IE space.P.S. It`s dirty hack so use this carefuly