|
|
@@ -79,7 +79,7 @@ module.exports = {
|
|
|
}),
|
|
|
new BrowserSyncPlugin({
|
|
|
host: 'daw.stu',
|
|
|
- port: 3030,
|
|
|
+ port: 81,
|
|
|
proxy: 'https://daw.stu',
|
|
|
https: {
|
|
|
key: '/opt/homebrew/etc/httpd/ssl/daw.stu-key.pem',
|
|
|
@@ -93,12 +93,22 @@ module.exports = {
|
|
|
'./parts/**/*.html',
|
|
|
'./patterns/**/*.php',
|
|
|
'./theme.json',
|
|
|
+ './.bs-reload', // touched by save_post (functions.php) โ reload after Gutenberg "Update"
|
|
|
],
|
|
|
ignore: ['node_modules', 'build', 'js/v4-*', '*.min.*'],
|
|
|
open: 'external',
|
|
|
reloadDelay: 50,
|
|
|
injectChanges: true,
|
|
|
notify: false,
|
|
|
+ // Serve dev responses uncached so a reload always reflects the latest edit
|
|
|
+ // (no stale browser cache while iterating). Pairs with the `files` watch above,
|
|
|
+ // which already auto-reloads on .php / template / src changes.
|
|
|
+ middleware: function (req, res, next) {
|
|
|
+ res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0');
|
|
|
+ res.setHeader('Pragma', 'no-cache');
|
|
|
+ res.setHeader('Expires', '0');
|
|
|
+ next();
|
|
|
+ },
|
|
|
}),
|
|
|
],
|
|
|
};
|