8000 minor #13681 Update Encore setup docs to reflect current results of i… · symfony/symfony-docs@f22b6d1 · GitHub
[go: up one dir, main page]

Skip to content

Commit f22b6d1

Browse files
committed
minor #13681 Update Encore setup docs to reflect current results of installation (danzera)
This PR was submitted for the master branch but it was merged into the 4.4 branch instead. Discussion ---------- Update Encore setup docs to reflect current results of installation Commits ------- 627b0b5 update encore setup docs to reflect current results of Encore installation
2 parents 83276e3 + 627b0b5 commit f22b6d1

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