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:
129
129
130
130
module .exports = Encore .getWebpackConfig ();
131
131
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:
134
134
135
135
.. code-block :: javascript
136
136
137
137
// 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';
140
150
141
151
console .log (' Hello Webpack Encore! Edit me in assets/js/app.js' );
142
152
You can’t perform that action at this time.
0 commit comments