posthtml / posthtml-img-autosize

Auto setting the width and height of <img>
MIT License
28 stars 8 forks source link

Prevents BrowserSync to reload on jade compilation #6

Open dmitriyK1 opened 8 years ago

dmitriyK1 commented 8 years ago

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

maltsev commented 8 years ago

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