8000 Minor tweaks · symfony/symfony-docs@d8ba869 · GitHub
[go: up one dir, main page]

Skip to content

Commit d8ba869

Browse files
committed
Minor tweaks
1 parent 577e35e commit d8ba869

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

frontend/encore/simple-example.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,8 @@ The import and export Statements
180180
--------------------------------
181181

182182
Instead of using ``require`` and ``module.exports`` like shown above, JavaScript
183-
has an alternate syntax, which is the new finalized ECMAScript standard for using modules in the browser, including
184-
the ability to use dynamic imports
185-
186-
..
183+
provides an alternate syntax based on the `ECMAScript 6 modules`_ that includes
184+
the ability to use dynamic imports.
187185

188186
To export values, use ``exports``:
189187

@@ -335,7 +333,8 @@ If you want to only compile a CSS file, that's possible via ``addStyleEntry()``:
335333
Encore
336334
// ...
337335
338-
.addStyleEntry('some_page', './assets/css/some_page.css');
336+
.addStyleEntry('some_page', './assets/css/some_page.css')
337+
;
339338
340339
This will output a new ``some_page.css``.
341340

@@ -346,3 +345,4 @@ Encore support many more features! For a full list of what you can do, see
346345
`Encore's index.js file`_. Or, go back to :ref:`list of Encore articles <encore-toc>`.
347346

348347
.. _`Encore's index.js file`: https://github.com/symfony/webpack-encore/blob/master/index.js
348+
.. _`ECMAScript 6 modules`: https://hacks.mozilla.org/2015/08/es6-in-depth-modules/

0 commit comments

Comments
 (0)
0