File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments