Skip to content

Commit 4ea3101

Browse files
author
symfony-flex-server[bot]
authored
Merge pull request #593
2 parents 3600e53 + 3c583b5 commit 4ea3101

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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.
5+
if (!Encore.isRuntimeEnvironmentConfigured()) {
6+
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
7+
}
8+
39
Encore
410
// directory where compiled assets will be stored
511
.setOutputPath('public/build/')

0 commit comments

Comments
 (0)