8000 update encore setup docs to reflect current results of Encore install… · symfony/symfony-docs@627b0b5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 627b0b5

Browse files
Dan Zerajaviereguiluz
Dan Zera
authored andcommitted
update encore setup docs to reflect current results of Encore installation
1 parent 83276e3 commit 627b0b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/encore/simple-example.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ CSS and one JS file, organized into an ``assets/`` directory:
99

1010
With Encore, think of your ``app.js`` file like a standalone JavaScript
1111
application: it will *require* all of the dependencies it needs (e.g. jQuery or React),
12-
*including* any CSS. Your ``app.js`` file is already doing this with a special
13-
``require()`` function:
12+
*including* any CSS. Your ``app.js`` file is already doing this with a JavaScript
13+
``import`` statement:
1414

1515
.. code-block:: javascript
1616
1717
// assets/js/app.js
1818
// ...
1919
20-
require('../css/app.css');
20+
import '../css/app.css';
2121
2222
// var $ = require('jquery');
2323

0 commit comments

Comments
 (0)
0