mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
To fix issue caused by #3071 In order to still fulfill the new linter rule `import/order`, I replaced the alias with the path. I also see two other approaches, but I opted for the simplest one here for now. The other approaches: 1. Also create an alias for `app`. 2. Use new `imports` (like in PR #2934), but let `_moduleAliases` untouched to stay compatible to 3rd party modules. **Edit**: Oh, I thought of another option: - Add `require("module-alias/register");`
9 lines
331 B
JavaScript
9 lines
331 B
JavaScript
const app = require("../js/app");
|
|
const Log = require("../js/logger");
|
|
|
|
app.start().then((config) => {
|
|
const bindAddress = config.address ? config.address : "localhost";
|
|
const httpType = config.useHttps ? "https" : "http";
|
|
Log.log(`\nReady to go! Please point your browser to: ${httpType}://${bindAddress}:${config.port}`);
|
|
});
|