browser-sync

Browsersync Couldn't open browser Heroku

谁说胖子不能爱 提交于 2021-02-19 07:34:44
问题 Browsersync: when I use it locally it's all right. When I deploy on Heroku, I have this warning: Couldn't open browser (if you are using BrowserSync in a headless environment, you might want to set the open option to false) this is my package.json : "scripts": { "clean": "rimraf dist/{css/*,js/*,images/*}", "autoprefixer": "postcss -u autoprefixer -r dist/css/*", "scss": "node-sass --output-style compressed -o dist/css src/scss", "lint": "eslint src/js || true", "lint-scss": "stylelint src

Gulp tasks chaining

a 夏天 提交于 2021-02-10 08:44:34
问题 I'm using gulp to compile some .less files and inject the changes in the browser with live-reload. This is the task I originally created: var gulp = require('gulp'); var less = require('gulp-less'); var watch = require('gulp-watch'); var plumber = require('gulp-plumber'); var livereload = require('gulp-livereload'); var path = require('path'); var postcss = require('gulp-postcss'); var autoprefixer = require('autoprefixer-core'); var mqpacker = require('css-mqpacker'); var csswring = require(

Gulp tasks chaining

六月ゝ 毕业季﹏ 提交于 2021-02-10 08:42:53
问题 I'm using gulp to compile some .less files and inject the changes in the browser with live-reload. This is the task I originally created: var gulp = require('gulp'); var less = require('gulp-less'); var watch = require('gulp-watch'); var plumber = require('gulp-plumber'); var livereload = require('gulp-livereload'); var path = require('path'); var postcss = require('gulp-postcss'); var autoprefixer = require('autoprefixer-core'); var mqpacker = require('css-mqpacker'); var csswring = require(

Browsersync Couldn't open browser, using Docker and Webpack

允我心安 提交于 2021-01-28 06:51:37
问题 Problem When I run npm run start to serve and watch via webpack, I got the warning below, after the scripts finish execution. I'm getting the browser up and running, it loads the page perfectly and shows a notification that it's connected to Browsersync. But when I do any change to any file (html, css or js). It doesn't reload!? Is it because I am in a Docker virtual environment, or because I'm not correctly instructing Browsersync to look for the right path of where my code is, or something

Node.js - Auto Refresh In Dev

风流意气都作罢 提交于 2021-01-14 02:28:40
问题 I am trying to improve the DEV experience in my Node. To do that, I want to: a) restart my server when server-side code is changed b) refresh the browser when client-side code is changes. In an effort to accomplish this, I began integrating nodemon and browserSync into my gulp script. In my gulp script, I have the following task: gulp.task('startDevEnv', function(done) { // Begin watching for server-side file changes nodemon( { script: input.server, ignore:[input.views] }) .on('start',

Node.js - Auto Refresh In Dev

邮差的信 提交于 2021-01-14 02:28:15
问题 I am trying to improve the DEV experience in my Node. To do that, I want to: a) restart my server when server-side code is changed b) refresh the browser when client-side code is changes. In an effort to accomplish this, I began integrating nodemon and browserSync into my gulp script. In my gulp script, I have the following task: gulp.task('startDevEnv', function(done) { // Begin watching for server-side file changes nodemon( { script: input.server, ignore:[input.views] }) .on('start',

Node.js - Auto Refresh In Dev

拟墨画扇 提交于 2021-01-14 02:26:24
问题 I am trying to improve the DEV experience in my Node. To do that, I want to: a) restart my server when server-side code is changed b) refresh the browser when client-side code is changes. In an effort to accomplish this, I began integrating nodemon and browserSync into my gulp script. In my gulp script, I have the following task: gulp.task('startDevEnv', function(done) { // Begin watching for server-side file changes nodemon( { script: input.server, ignore:[input.views] }) .on('start',

Node.js - Auto Refresh In Dev

夙愿已清 提交于 2021-01-14 02:24:41
问题 I am trying to improve the DEV experience in my Node. To do that, I want to: a) restart my server when server-side code is changed b) refresh the browser when client-side code is changes. In an effort to accomplish this, I began integrating nodemon and browserSync into my gulp script. In my gulp script, I have the following task: gulp.task('startDevEnv', function(done) { // Begin watching for server-side file changes nodemon( { script: input.server, ignore:[input.views] }) .on('start',

BrowserSync: Proxy Subdomains

不问归期 提交于 2020-12-13 04:12:49
问题 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,

BrowserSync: Proxy Subdomains

空扰寡人 提交于 2020-12-13 04:09:42
问题 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,