File: /var/www/linde-ai/html/borealis.config.js
// Webpack config shouldn't be directly updated in most cases
// Just properties that are allowed in this custom config object should be enough
module.exports = () => {
return {
development: {
devServer: {
// Port from where webpack-dev-server serves static files (from memory)
port: 27029,
// This assumes that local dev environment hosts Wordpress site under localhost/ (eg. http://localhost/my-wp-site)
host: "localhost",
// Reload the page on each PHP file save inside WordPress theme folder (wp-content/themes/linde)
reloadOnPhpFileChange: false,
},
},
};
};