Skip to content

Commit a0e0b01

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: Update installation.rst
2 parents a36719b + 6031c1b commit a0e0b01

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

frontend/encore/installation.rst

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,24 @@ is the main config file for both Webpack and Webpack Encore:
129129
130130
module.exports = Encore.getWebpackConfig();
131131
132-
Next, create a new ``assets/js/app.js`` file with some basic JavaScript *and*
133-
import some CSS:
132+
Next, open the new ``assets/js/app.js`` file which contains some JavaScript code
133+
*and* imports some CSS:
134134

135135
.. code-block:: javascript
136136
137137
// assets/js/app.js
138-
139-
require('../css/app.css');
138+
/*
139+
* Welcome to your app's main JavaScript file!
140+
*
141+
* We recommend including the built version of this JavaScript file
142+
* (and its CSS file) in your base layout (base.html.twig).
143+
*/
144+
145+
// any CSS you import will output into a single css file (app.css in this case)
146+
import '../css/app.css';
147+
148+
// Need jQuery? Install it with "yarn add jquery", then uncomment to import it.
149+
// import $ from 'jquery';
140150
141151
console.log('Hello Webpack Encore! Edit me in assets/js/app.js');
142152

0 commit comments

Comments
 (0)