When creating a new plugin using the Aurelia CLI, it also contains a dev app for comfortable standalone testing/evaluation purposes.
When running the plugin’s dev app with npm start
, it does not automatically open a browser window by default. The documentation states, that a browser window can be opened when executing au run --open
. I myself edited aurelia.json
in the aurelia_project
folder to automatically open a browser window by default. That seems to do the job as well.
However, since Mozilla Firefox is my default browser, Firefox is used automatically. I’d prefer to open it in Google Chrome instead, however.
I know how to configure this with Webpack: in webpack.config.js
, specify 'chrome'
instead of true
for the value of the open
property of the devServer
option. But it turns out that Webpack is not included/used when creating a new plugin. Even when scaffolding a custom project using the Aurelia CLI there is no option to specify Webpack as the bundler for a new plugin.
I tried to specify "chrome"
instead of true
for the value of the open
property of the platform
property in aurelia.json
, but that did not have any effect: it still opens in Firefox. (Probably because "chrome"
is a truthy value.)
Is there a way to explicitly use Chrome (while keeping Firefox set as my default browser) when running a plugin’s dev app?