Skip to content

Commit 088e659

Browse files
committed
Fixed Encore dir paths
1 parent 1a6ed63 commit 088e659

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

frontend/encore/installation-no-flex.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Install Encore into your project via Yarn:
1717
1818
.. note::
1919

20-
If you prefer to use `npm`_, no problem! Run ``npm install @symfony/webpack-encore --save-dev``.
20+
If you prefer to use `npm`_, no problem! Run ``npm install @symfony/webpack-encore --save-dev``.
2121

2222
This command creates (or modifies) a ``package.json`` file and downloads dependencies
2323
into a ``node_modules/`` directory. Yarn also creates/updates a ``yarn.lock``
@@ -39,7 +39,7 @@ Next, create a new ``webpack.config.js`` file at the root of your project:
3939
4040
Encore
4141
// directory where compiled assets will be stored
42-
.setOutputPath('web/build/')
42+
.setOutputPath('public/build/')
4343
// public path used by the web server to access the output path
4444
.setPublicPath('/build')
4545
// only needed for CDN's or sub-directory deploy
@@ -81,9 +81,9 @@ import some JavaScript:
8181
.. code-block:: javascript
8282
8383
// assets/js/app.js
84-
84+
8585
require('../css/app.css');
86-
86+
8787
console.log('Hello Webpack Encore');
8888
8989
And the new ``assets/css/app.css`` file:

frontend/encore/simple-example.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ of your project. It already holds the basic config you need:
5555
They *key* part is ``addEntry()``: this tells Encore to load the ``assets/js/app.js``
5656
file and follow *all* of the ``require`` statements. It will then package everything
5757
together and - thanks to the first ``app`` argument - output final ``app.js`` and
58-
``app.css`` files into the ``web/build`` directory.
58+
``app.css`` files into the ``public/build`` directory.
5959

6060
.. _encore-build-assets:
6161

0 commit comments

Comments
 (0)