browser-sync

BrowserSync: Proxy Subdomains

你。 提交于 2020-12-13 04:09:28
问题 I have a Django app which serves multiple sites on separate subdomains. In development, I access the sites on: www.myapp.local:8000 data.myapp.local:8000 publish.myapp.local:8000 admin.myapp.local:8000 Note this works using the django_hosts library and through modifying /etc/hosts file, e.g: 127.0.0.1 www.myapp.local 127.0.0.1 data.myapp.local 127.0.0.1 publish.myapp.local 127.0.0.1 admin.myapp.local However, I am unable to figure out how to configure BrowserSync, in my Gulp-based workflow,

Error When Running BrowserSync from Package.json Scripts

て烟熏妆下的殇ゞ 提交于 2020-08-19 06:48:28
问题 I have set up Browser Sync to work with nodemon and express. I am not using gulp or grunt, but rather running everything through npm scripts in my package.json file. Now, everything works, but I get an error when running my scripts and would like to know what the error is about and how I can fix it. First, here is my setup: { "scripts": { "dev": "npm run development", "dev:css": "postcss assets/css/style.css -o public/assets/css/style.css", "dev:sync": "browser-sync start --proxy 'localhost

Webpack --watch and launching nodemon?

馋奶兔 提交于 2020-05-24 08:25:10
问题 Thanks to an excellent answer by @McMath I now have webpack compiling both my client and my server. I'm now on to trying to make webpack --watch be useful. Ideally I'd like to have it spawn something like nodemon for my server process when that bundle changes, and some flavor of browsersync for when my client changes. I realize it's a bundler/loader and not really a task runner, but is there some way to accomplish this? A lack of google results seems to indicate I'm trying something new, but

BROWSER SYNC headless environment ERROR

安稳与你 提交于 2020-02-25 06:41:48
问题 So i just started learning Angular 2 and after running the npm install command on git bash and opening my text editor, I was trying to run the npm start command to start the typescript and lite server. Everything went well until this error showed up [1] [BS] Couldn't open browser (if you are using BrowserSync in a headless environment, you might want to set the open option to false) and the browser didn't open. Here's how it looks ` $ npm start [1] [BS] Access URLs: [1] ----------------------

BROWSER SYNC headless environment ERROR

此生再无相见时 提交于 2020-02-25 06:41:37
问题 So i just started learning Angular 2 and after running the npm install command on git bash and opening my text editor, I was trying to run the npm start command to start the typescript and lite server. Everything went well until this error showed up [1] [BS] Couldn't open browser (if you are using BrowserSync in a headless environment, you might want to set the open option to false) and the browser didn't open. Here's how it looks ` $ npm start [1] [BS] Access URLs: [1] ----------------------

Docker and BrowserSync

旧街凉风 提交于 2020-02-25 02:23:12
问题 I'm trying to run browsersync in my docker container but I only get the directory listing when I navigate to localhost:3000. I'm trying to run a WordPress instance, and I'm using Gulp as the task runner. localhost:3001 brings up the browsersync ui successfully and viewing localhost (no port) brings up the homepage. Here are the relevant code snippets I think. Gulpfile BrowserSync settings: const gBrowsersync = function(done) { browsersync.init({ open: false, }); done(); }; Docker-compose:

Docker and BrowserSync

五迷三道 提交于 2020-02-25 02:21:12
问题 I'm trying to run browsersync in my docker container but I only get the directory listing when I navigate to localhost:3000. I'm trying to run a WordPress instance, and I'm using Gulp as the task runner. localhost:3001 brings up the browsersync ui successfully and viewing localhost (no port) brings up the homepage. Here are the relevant code snippets I think. Gulpfile BrowserSync settings: const gBrowsersync = function(done) { browsersync.init({ open: false, }); done(); }; Docker-compose: