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 aa43e71 commit 9f41b6aCopy full SHA for 9f41b6a
package/env.js
@@ -16,10 +16,7 @@ const config = load(readFileSync(configPath), 'utf8')
16
const availableEnvironments = Object.keys(config).join('|')
17
const regex = new RegExp(`^(${availableEnvironments})$`, 'g')
18
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'
+const runningWebpackDevServer = process.env.WEBPACK_SERVE === 'true'
23
24
module.exports = {
25
railsEnv: railsEnv && railsEnv.match(regex) ? railsEnv : DEFAULT,
0 commit comments