Skip to content

Commit c67f07f

Browse files
greg0ireweaverryan
authored andcommitted
Proofread encore
1 parent 0aba67d commit c67f07f

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

frontend/encore/cdn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ e.g. ``https://my-cool-app.com.global.prod.fastly.net/dashboard.js``.
3636
directly from your web server.
3737

3838
You *do* need to make sure that the ``script`` and ``link`` tags you include on your
39-
pages also uses the CDN. Fortunately, the ``manifest.json`` paths are updated to
39+
pages also use the CDN. Fortunately, the ``manifest.json`` paths are updated to
4040
point to the CDN. In Symfony, as long as you've configured
4141
:doc:`Asset Versioning </frontend/encore/versioning>`, you're done! The ``manifest.json``
4242
file includes the full CDN URL:

frontend/encore/css-preprocessors.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
CSS Preprocessors: Sass, LESS, etc
2-
==================================
1+
CSS Preprocessors: Sass, LESS, etc.
2+
===================================
33

44
Using Sass
55
----------
@@ -22,7 +22,7 @@ And enable it in ``webpack.config.js``:
2222
.enableSassLoader()
2323
;
2424
25-
That's it! All files ending in ``.sass`` or ``.scss`` will be processed.
25+
That's it! All files ending in ``.sass`` or ``.scss`` will be pre-processed.
2626

2727
Using LESS
2828
----------

frontend/encore/dev-server.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Using webpack-dev-server and HMR
22
================================
33

4-
While developing, instead of using ``encore dev --watch``, you can instead use the
4+
While developing, instead of using ``encore dev --watch``, you can use the
55
`webpack-dev-server`_:
66

77
.. code-block:: terminal

frontend/encore/page-specific-assets.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ tag for ``checkout.css`` if you import any CSS).
2828
Multiple Entries Per Page?
2929
--------------------------
3030

31-
Typically, you should include only *one* entry JavaScript per page. This means
31+
Typically, you should include only *one* JavaScript entry per page. This means
3232
the checkout page will include ``checkout.js``, but will *not* include the
3333
``app.js`` that's used on the other pages. Think of the checkout page as its
3434
own "app", where ``checkout.js`` includes all the functionality you need.

frontend/encore/server-data.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Fetch this in JavaScript:
2626
There is no size limit for the value of the ``data-`` attributes, so you can
2727
store any content. In Twig, use the ``html_attr`` escaping strategy to avoid messing
2828
with HTML attributes. For example, if your ``User`` object has some ``getProfileData()``
29-
method that returns an array, you could:
29+
method that returns an array, you could do the following:
3030

3131
.. code-block:: twig
3232

frontend/encore/simple-example.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Inside, use Encore to help generate your Webpack configuration.
2222
var Encore = require('@symfony/webpack-encore');
2323
2424
Encore
25-
// directory where should all compiled assets will be stored
25+
// directory where all compiled assets will be stored
2626
.setOutputPath('web/build/')
2727
2828
// what's the public path to this directory (relative to your project's document root dir)
@@ -40,7 +40,7 @@ Inside, use Encore to help generate your Webpack configuration.
4040
// allow sass/scss files to be processed
4141
.enableSassLoader()
4242
43-
// allows legacy applications to use $/jQuery as a global variable
43+
// allow legacy applications to use $/jQuery as a global variable
4444
.autoProvidejQuery()
4545
4646
.enableSourceMaps(!Encore.isProduction())
@@ -99,8 +99,8 @@ In Symfony, use the ``asset()`` helper:
9999
Requiring JavaScript Modules
100100
----------------------------
101101

102-
Webpack is module bundler... which means that you can ``require`` other JavaScript
103-
files. First, create a file that exports a function:
102+
Webpack is a module bundler... which means that you can ``require`` other
103+
JavaScript files. First, create a file that exports a function:
104104

105105
.. code-block:: javascript
106106

frontend/encore/sourcemaps.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Enabling Source Maps
22
====================
33

4-
`Source maps`_ allow browsers to access to the original code related to some
4+
`Source maps`_ allow browsers to access the original code related to some
55
asset (e.g. the Sass code that was compiled to CSS or the TypeScript code that
66
was compiled to JavaScript). Source maps are useful for debugging purposes but
77
unnecessary when executing the application in production.

frontend/encore/versioning.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ By calling ``enableVersioning()``, each filename will now include a hash that
88
changes whenever the *contents* of that file change (e.g. ``app.123abc.js``
99
instead of ``app.js``). This allows you to use aggressive caching strategies
1010
(e.g. a far future ``Expires``) because, whenever a file change, its hash will change,
11-
invalidating any existing cache:
11+
ignoring any existing cache:
1212

1313
.. code-block:: diff
1414

0 commit comments

Comments
 (0)