add a comment

This commit is contained in:
Hugo Alliaume
2019-06-01 07:30:08 +02:00
committed by GitHub
parent 0800539ca8
commit 3c583b5ab3
@@ -1,5 +1,7 @@
var Encore = require('@symfony/webpack-encore');
// Manually configure the runtime environment if not already configured yet by the "encore" command.
// It's useful when you use tools that rely on webpack.config.js file.
if (!Encore.isRuntimeEnvironmentConfigured()) {
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
}