mirror of
https://github.com/symfony/recipes.git
synced 2026-09-15 00:56:24 +03:00
Encore: configure runtime environment if not already configured
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
var Encore = require('@symfony/webpack-encore');
|
||||
|
||||
if (!Encore.isRuntimeEnvironmentConfigured()) {
|
||||
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
|
||||
}
|
||||
|
||||
Encore
|
||||
// directory where compiled assets will be stored
|
||||
.setOutputPath('public/build/')
|
||||
|
||||
Reference in New Issue
Block a user