File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -129,14 +129,23 @@ 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 *
132
+ Next, open the new ``assets/js/app.js `` file with some basic JavaScript *and *
133
133
import some CSS:
134
134
135
135
.. code-block :: javascript
136
136
137
- // assets/js/app.js
137
+ /*
138
+ * Welcome to your app's main JavaScript file!
139
+ *
140
+ * We recommend including the built version of this JavaScript file
141
+ * (and its CSS file) in your base layout (base.html.twig).
142
+ */
138
143
139
- require (' ../css/app.css' );
144
+ // any CSS you import will output into a single css file (app.css in this case)
145
+ import ' ../css/app.css' ;
146
+
147
+ // Need jQuery? Install it with "yarn add jquery", then uncomment to import it.
148
+ // import $ from 'jquery';
140
149
141
150
console .log (' Hello Webpack Encore! Edit me in assets/js/app.js' );
142
151
You can’t perform that action at this time.
0 commit comments