Skip to content

Commit 9f41b6a

Browse files
author
David Heinemeier Hansson
committed
Switched to webpack-dev-server v4
1 parent aa43e71 commit 9f41b6a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

package/env.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ const config = load(readFileSync(configPath), 'utf8')
1616
const availableEnvironments = Object.keys(config).join('|')
1717
const regex = new RegExp(`^(${availableEnvironments})$`, 'g')
1818

19-
// v4 of webpack-dev-server will switch to WEBPACK_DEV_SERVE
20-
// https://github.com/rails/webpacker/issues/3057
21-
const runningWebpackDevServer = process.env.WEBPACK_DEV_SERVER === 'true' ||
22-
process.env.WEBPACK_DEV_SERVE === 'true'
19+
const runningWebpackDevServer = process.env.WEBPACK_SERVE === 'true'
2320

2421
module.exports = {
2522
railsEnv: railsEnv && railsEnv.match(regex) ? railsEnv : DEFAULT,

0 commit comments

Comments
 (0)