We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f813bed commit c8d0aeaCopy full SHA for c8d0aea
scripts/start.js
@@ -3,6 +3,7 @@
3
require('dotenv').config({silent: true})
4
5
const fs = require('fs')
6
+const path = require('path')
7
const chalk = require('chalk')
8
const webpack = require('webpack')
9
const WebpackDevServer = require('webpack-dev-server')
@@ -134,7 +135,7 @@ choosePort(HOST, DEFAULT_PORT)
134
135
return
136
}
137
const protocol = process.env.HTTPS === 'true' ? 'https' : 'http'
- const appName = require(paths.elmPkg).name
138
+ const appName = path.basename(path.dirname(paths.elmPkg))
139
const urls = prepareUrls(protocol, HOST, port)
140
// Create a webpack compiler that is configured with custom messages.
141
const compiler = createCompiler(webpack, config, appName, urls)
0 commit comments