Skip to content

Commit c8d0aea

Browse files
committed
fix: Fixed displayed project name in start script stdout
1 parent f813bed commit c8d0aea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/start.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require('dotenv').config({silent: true})
44

55
const fs = require('fs')
6+
const path = require('path')
67
const chalk = require('chalk')
78
const webpack = require('webpack')
89
const WebpackDevServer = require('webpack-dev-server')
@@ -134,7 +135,7 @@ choosePort(HOST, DEFAULT_PORT)
134135
return
135136
}
136137
const protocol = process.env.HTTPS === 'true' ? 'https' : 'http'
137-
const appName = require(paths.elmPkg).name
138+
const appName = path.basename(path.dirname(paths.elmPkg))
138139
const urls = prepareUrls(protocol, HOST, port)
139140
// Create a webpack compiler that is configured with custom messages.
140141
const compiler = createCompiler(webpack, config, appName, urls)

0 commit comments

Comments
 (0)