diff --git a/webpack.config.js b/webpack.config.js index 14ef7e4..1dd9fae 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -10,9 +10,9 @@ Encore // directory where compiled assets will be stored .setOutputPath('public/build/') // public path used by the web server to access the output path - .setPublicPath('/build') + .setPublicPath('/' + (process.env.APACHE_ALIAS ? process.env.APACHE_ALIAS + '/' : '') + 'build') // only needed for CDN's or sub-directory deploy - //.setManifestKeyPrefix('build/') + .setManifestKeyPrefix('build/') /* * ENTRY CONFIG