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.
2 parents 3600e53 + 3c583b5 commit 4ea3101Copy full SHA for 4ea3101
symfony/webpack-encore-bundle/1.0/webpack.config.js
@@ -1,5 +1,11 @@
1
var Encore = require('@symfony/webpack-encore');
2
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
+
9
Encore
10
// directory where compiled assets will be stored
11
.setOutputPath('public/build/')
0 commit comments