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

Commit6031c1b

Browse files
committed
minor#13734 Update installation.rst (abdounikarim)
This PR was submitted for the 4.4 branch but it was merged into the 3.4 branch instead.Discussion----------Update installation.rstupdate codeCommits-------d038917 Update installation.rst
2 parents58fba0d +d038917 commit6031c1b

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
@@ -98,14 +98,24 @@ is the main config file for both Webpack and Webpack Encore:
9898
9999
module.exports=Encore.getWebpackConfig();
100100
101-
Next,create a new ``assets/js/app.js`` filewithsomebasicJavaScript*and*
102-
importsomeJavaScript:
101+
Next,open the new ``assets/js/app.js`` filewhich containssome JavaScriptcode
102+
*and* importssomeCSS:
103103

104104
..code-block::javascript
105105
106106
// assets/js/app.js
107-
108-
require('../css/app.css');
107+
/*
108+
* Welcome to your app's main JavaScript file!
109+
*
110+
* We recommend including the built version of this JavaScript file
111+
* (and its CSS file) in your base layout (base.html.twig).
112+
*/
113+
114+
// any CSS you import will output into a single css file (app.css in this case)
115+
import'../css/app.css';
116+
117+
// Need jQuery? Install it with "yarn add jquery", then uncomment to import it.
118+
// import $ from 'jquery';
109119
110120
console.log('Hello Webpack Encore');
111121

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp