posthtml-img-autosize icon indicating copy to clipboard operation
posthtml-img-autosize copied to clipboard

Prevents BrowserSync to reload on jade compilation

Open dmitriyK1 opened this issue 9 years ago • 1 comments

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

dmitriyK1 avatar Jun 06 '16 21:06 dmitriyK1

Sorry, I'm not sure I follow you. Could you explain the issue in more detail?

maltsev avatar Jun 11 '16 14:06 maltsev