support subdirectories and subdomains for assets (#636)

This commit is contained in:
Kevin Papst
2019-03-12 01:02:42 +01:00
committed by GitHub
parent 1b6b957b23
commit 46655ad462
6 changed files with 67 additions and 37 deletions

View File

@@ -4,8 +4,12 @@ Encore
// the project directory where compiled assets will be stored
.setOutputPath('public/build/')
// the public path used by the web server to access the previous directory
.setPublicPath('/build/')
// the public path is ONLY used to reference fonts from within CSS
// you can ignore the warning message triggered by webpack encore
.setPublicPath('./')
// used by the asset twig helper to find the correct entry from manifest.json (prefix for each manifest entry)
.setManifestKeyPrefix('build/')
// empty the outputPath directory before each build
.cleanupOutputBeforeBuild()