Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd0ac17c

Browse files
authored
Update installation.rst
update code
1 parent00fe859 commitd0ac17c

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

‎frontend/encore/installation.rst‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,23 @@ 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*
132+
Next,open the new ``assets/js/app.js`` file with some basic JavaScript *and*
133133
import some CSS:
134134

135135
..code-block::javascript
136136
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+
*/
138143
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';
140149
141150
console.log('Hello Webpack Encore! Edit me in assets/js/app.js');
142151

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp