Skip to content

Commit bdf0da8

Browse files
author
symfony-flex-server[bot]
authored
Merge pull request #789
2 parents 66b5913 + 910cccb commit bdf0da8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

symfony/webpack-encore-bundle/1.0/assets/js/app.js renamed to symfony/webpack-encore-bundle/1.0/assets/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
*/
77

88
// any CSS you import will output into a single css file (app.css in this case)
9-
import '../css/app.css';
9+
import './styles/app.css';
1010

1111
// Need jQuery? Install it with "yarn add jquery", then uncomment to import it.
1212
// import $ from 'jquery';
1313

14-
console.log('Hello Webpack Encore! Edit me in assets/js/app.js');
14+
console.log('Hello Webpack Encore! Edit me in assets/app.js');

symfony/webpack-encore-bundle/1.0/webpack.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ Encore
2323
* Each entry will result in one JavaScript file (e.g. app.js)
2424
* and one CSS file (e.g. app.css) if your JavaScript imports CSS.
2525
*/
26-
.addEntry('app', './assets/js/app.js')
27-
//.addEntry('page1', './assets/js/page1.js')
28-
//.addEntry('page2', './assets/js/page2.js')
26+
.addEntry('app', './assets/app.js')
27+
//.addEntry('page1', './assets/page1.js')
28+
//.addEntry('page2', './assets/page2.js')
2929

3030
// When enabled, Webpack "splits" your files into smaller pieces for greater optimization.
3131
.splitEntryChunks()
@@ -68,7 +68,7 @@ Encore
6868

6969
// uncomment if you use API Platform Admin (composer req api-admin)
7070
//.enableReactPreset()
71-
//.addEntry('admin', './assets/js/admin.js')
71+
//.addEntry('admin', './assets/admin.js')
7272
;
7373

7474
module.exports = Encore.getWebpackConfig();

0 commit comments

Comments
 (0)