@@ -98,7 +98,7 @@ your layout. In Symfony, use the ``asset()`` helper:
98
98
Requiring JavaScript Modules
99
99
----------------------------
100
100
101
- Webpack is a module bundler... which means that you can ``require `` other JavaScript
101
+ Webpack is a module bundler, which means that you can ``require `` other JavaScript
102
102
files. First, create a file that exports a function:
103
103
104
104
.. code-block :: javascript
@@ -139,9 +139,9 @@ The import and export Statements
139
139
140
140
Instead of using ``require `` and ``module.exports `` like shown above, JavaScript
141
141
has an alternate syntax, which is a more accepted standard. Choose whichever you
142
- want: they function identically:
142
+ want, they function identically.
143
143
144
- To export values, use ``exports ``:
144
+ To export values using the alternate syntax , use ``exports ``:
145
145
146
146
.. code-block :: diff
147
147
@@ -168,7 +168,7 @@ Page-Specific JavaScript or CSS (Multiple Entries)
168
168
--------------------------------------------------
169
169
170
170
So far, you only have one final JavaScript file: ``app.js ``. For simple apps or
171
- SPA's (Single Page Applications), that might be fine! However, as your app grows,
171
+ SPAs (Single Page Applications), that might be fine! However, as your app grows,
172
172
you may want to have page-specific JavaScript or CSS (e.g. homepage, blog, store,
173
173
etc.). To handle this, add a new "entry" for each page that needs custom JavaScript
174
174
or CSS:
0 commit comments