Closed octoxan closed 5 years ago
i have no experiance with magneto, however try to move the versionHash()
as the last call for mix.
as a temp way around, try the browserSync extension along with ur editor browserSync package hook
this could also work:
if (mix.inProduction()) {
require("laravel-mix-versionhash");
mix.versionHash();
} else {
mix.browserSync({
proxy: "localhost:8000"
});
}
See https://github.com/JeffreyWay/laravel-mix/issues/1686
BrowserSync doesn't work in Magento 1 unless you explicitly set what files to watch.
The following code works.
But switching it to
versionHash()
makes it not inject stylesheet changes. I even tried setting the delimiter to a hyphen thinking maybe the extra period was breaking*.css