You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time there is a change in any of the less files, the browser reloads but the changes made from the less file did not reflect on the website.
Steps to reproduce/test case
Here is my gulp task
// Here is the modified styles taskgulp.task('styles',function(){varbundle=gulp.src(config.client+'app/themes/'+THEME_NAME+'/less/styles.less').pipe($.plumber()).pipe($.less()).pipe($.autoprefixer({browsers: ['last 2 versions','> 5%']})).pipe($.concat('themeStyles.tmp'));varglobalStyle=gulp.src(config.less).pipe($.plumber()).pipe($.less()).pipe($.autoprefixer({browsers: ['last 2 versions','> 5%']})).pipe($.concat('globalStyles.tmp'));varstream=merge(bundle,globalStyle).pipe($.concat('styles.css')).pipe(gulp.dest(config.temp));returnstream;});// Here is the modified less-watchergulp.task('less-watcher',function(){gulp.watch([config.client+'app/themes'+THEME_NAME+'/less/**/*.*',config.less],['styles']);});// Here is the modified startBrowserSync functionfunctionstartBrowserSync(isDev,specRunner){if(args.nosync||browserSync.active){return;}log('Starting BrowserSync on port '+port);// If build: watches the files, builds, and restarts browser-sync.// If dev: watches less, compiles it to css, browser-sync handles reloadif(isDev){gulp.watch([config.client+'app/themes'+THEME_NAME+'/less/**/*.*',config.less],['styles']).on('change',changeEvent);}else{gulp.watch([config.less,config.js,config.html],['browserSyncReload']).on('change',changeEvent);}
...
...
...
}
Please specify which version of generator-hottowel, node and npm you're running
generator-hottowel (0.0.11)
Node (8.9.4)
Npm (5.5.1)
Affected platforms
linux
windows
OS X
other (please specify which)
Which gulp command are you running ?
{gulp serve-dev}
The text was updated successfully, but these errors were encountered:
Issue details
Every time there is a change in any of the
less
files, the browser reloads but the changes made from theless
file did not reflect on the website.Steps to reproduce/test case
Here is my
gulp task
Please specify which version of
generator-hottowel
, node and npm you're runningAffected platforms
Which gulp command are you running ?
{gulp serve-dev}
The text was updated successfully, but these errors were encountered: