Tobias Wohlfarth
11/29/2023, 8:24 PMHildebrandt Tobias
11/29/2023, 11:17 PMTobias Wohlfarth
11/29/2023, 11:39 PMconfig.devServer = {
"open": {
"app": {
"name": 'firefox-nightly',
}
},
"static": [
"kotlin",
"../../../processedResources/js/main"
],
"client": {
"overlay": {
"errors": true,
"warnings": false
}
}
};
I assume this overwrites the complete config object for devServer, but I didn't know the syntax for only adding custom open
keyHildebrandt Tobias
11/29/2023, 11:45 PMHildebrandt Tobias
11/29/2023, 11:47 PM;(function(config) {
config.mode = 'development'
if(!config.hasOwnProperty('devServer')) {
config.devServer = { }
}
config.devServer.host = 'developer.local'
config.devServer.port = 8080
config.devServer.historyApiFallback = true
config.devServer.devMiddleware = {
publicPath: '/',
mimeTypes: { "text/html": ["phtml"] },
}
// config.devServer.historyApiFallback = true
})(config);
Just as a reference. This way, changes from other sources aren't overwritten. (I just copied it from my Playground project)