Skip to content

Instantly share code, notes, and snippets.

@grizmio
Created September 22, 2020 17:21
Show Gist options
  • Save grizmio/5f4b330ea30599a3327f1bea29d0cb02 to your computer and use it in GitHub Desktop.
Save grizmio/5f4b330ea30599a3327f1bea29d0cb02 to your computer and use it in GitHub Desktop.
Symfony, Webencore, yarn, /public/build to just /public
'cause Amnesia.
webpack.config.js:
.setOutputPath('public/')
// public path used by the web server to access the output path
.setPublicPath('/')
assets.yaml:
json_manifest_path: '%kernel.project_dir%/public/manifest.json'
webpack_encore.js:
webpack_encore:
# Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
# Available in version 1.2
#cache: true
output_path: '%kernel.project_dir%/public'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment