Jan 21, 2021
0
Level 17
Browsersync HTML Injector plugin with Mix?
Has anyone gotten bs-html-injector to work with Mix?
https://github.com/shakyShane/html-injector
I tried with this config, and it seems HTML Injector starts up with Browsersync, but it doesn't detect any changes in the blade files.
mix.browserSync({
proxy: 'test-site.local',
open: false,
https: false,
files: [
// 'app/**/*.php',
// 'resources/views/**/*.php',
'public/**/*.(js|css)'
],
plugins: [
{
module: 'bs-html-injector',
options: {
files: 'resources/views/**/*.php',
}
}
]
});
I also tried with a test .html file instead of blade.php (changing the files property to catch *.html instead), with no success.
Please or to participate in this conversation.