Skip to content

Commit a17f090

Browse files
committed
minor #38 Remove unknown variable %kernel.public_dir% from README.md. (shulard)
This PR was merged into the master branch. Discussion ---------- Remove unknown variable `%kernel.public_dir%` from README.md. As said in #17 (comment), this variable does not exists in Symfony 4.2 and must not be used in the README as a valid example. Commits ------- 9996437 Remove unknown variable `%kernel.public_dir%`
2 parents ba327cd + 9996437 commit a17f090

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ file:
2121
# config/packages/webpack_encore.yaml
2222
webpack_encore:
2323
# The path where Encore is building the assets - i.e. Encore.setOutputPath()
24-
output_path: '%kernel.public_dir%/build'
24+
output_path: '%kernel.project_dir%/public/build'
2525

2626
# if you have multiple builds:
2727
# builds:
2828
# pass "frontend" as the 3rg arg to the Twig functions
2929
# {{ encore_entry_script_tags('entry1', null, 'frontend') }}
3030

31-
# frontend: '%kernel.public_dir%/frontend/build'
31+
# frontend: '%kernel.project_dir%/public/frontend/build'
3232
```
3333

3434
## Usage
@@ -53,7 +53,7 @@ enable it manually:
5353
When you enable `splitEntryChunks()`, instead of just needing 1 script tag
5454
for `entry1.js` and 1 link tag for `entry1.css`, you may now need *multiple*
5555
script and link tags. This is because Webpack ["splits" your files](https://webpack.js.org/plugins/split-chunks-plugin/)
56-
into smaller pieces for greater optimization.
56+
into smaller pieces for greater optimization.
5757

5858
To help with this, Encore writes a `entrypoints.json` file that contains
5959
all of the files needed for each "entry".

0 commit comments

Comments
 (0)