Skip to content

Commit 0800539

Browse files
authored
Encore: configure runtime environment if not already configured
1 parent ddbcd99 commit 0800539

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

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

3+
if (!Encore.isRuntimeEnvironmentConfigured()) {
4+
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
5+
}
6+
37
Encore
48
// directory where compiled assets will be stored
59
.setOutputPath('public/build/')

0 commit comments

Comments
 (0)