Skip to content

Commit 3c583b5

Browse files
authored
add a comment
1 parent 0800539 commit 3c583b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

symfony/webpack-encore-bundle/1.0/webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
var Encore = require('@symfony/webpack-encore');
22

3+
// Manually configure the runtime environment if not already configured yet by the "encore" command.
4+
// It's useful when you use tools that rely on webpack.config.js file.
35
if (!Encore.isRuntimeEnvironmentConfigured()) {
46
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
57
}

0 commit comments

Comments
 (0)