-
Notifications
You must be signed in to change notification settings - Fork 38
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
[Edited] Getting Multiple instances opened #79
Comments
Changed the code to this one below and looks like the error message disappeared but ... browserSync: {
files: {
src : [
'<%= config.dist %>/**/*.html',
'.tmp/styles/{,*/}*.css',
'{.tmp,<%= config.dist %>}/scripts/{,*/}*.js',
'<%= config.dist %>/img/{,*/}*.{gif,jpeg,jpg,png,svg,webp}'
],
},
options: {
watchTask: true,
ghostMode: {
scroll: true,
links: true,
forms: true
},
server: {
baseDir: './<%= config.dist %>'
}
},
}, |
Looks like removing the server part server: {
baseDir: './<%= config.dist %>'
} solves the issue with the second window but now it seems that browserSync stopped working at all. Last lines from the terminal (grunt serve): Running "connect:livereload" (connect) task
Started connect web server on http://0.0.0.0:9000
Running "browserSync:bsFiles" (browserSync) task
Running "watch" task
Waiting...
[BS] Copy the following snippet into your website, just before the closing </body> tag
<script type='text/javascript' id="__bs_script__">//<![CDATA[
document.write("<script async src='//HOST:3000/browser-sync/browser-sync-client.1.7.0.js'><\/script>".replace(/HOST/g, location.hostname).replace(/PORT/g, location.port));
//]]></script>
[BS] Watching files... |
Well ... changed some paths, enabled the browserSync server block again and there is some progress with it but two issues still remain:
Any idea how to fix it? |
Need help yet @neo-art ? |
I just switched to a custom task to start 2 instances HTTP/HTTPS. I'd really like to do this via the config object but this -> #109 works well and it's small. |
Hi,
Trying to get browser-sync working with yeoman-webapp
but having some issues. Hope someone can assist with this:
This is what I have in my the Gruntfile.js (just part of the gruntfile):
and the task:
When I run grunt serve new window opens at localhost:9000
but it can't load.
Will appreciate any hint what can be the issue.
The text was updated successfully, but these errors were encountered: