posthtml-img-autosize
posthtml-img-autosize copied to clipboard
Prevents BrowserSync to reload on jade compilation
Here is a part of my gulpfile:
const posthtmlPlugins = [
require('posthtml-img-autosize')({
root: './'
, processEmptySize: true
})
]
gulp.task( 'templates', () =>
gulp
.src('./dev/templates/pages/**/*.jade')
.pipe( plugins.jade() )
.pipe( plugins.posthtml( posthtmlPlugins ) )
.pipe( gulp.dest('./dist') )
)
gulp.task( 'watch', () => {
gulp.watch( ['./dev/templates/**/*.jade' ], [ 'templates' ] )
})
I've tested my setup with other poshtml-plugins and everything works fine, so fix please if possible
Sorry, I'm not sure I follow you. Could you explain the issue in more detail?