Skip to content

Commit d1020b5

Browse files
committed
[Webpack Encore] Change default assets directory structure
1 parent 4442ff3 commit d1020b5

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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 './stylesheets/app.css';
1010

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ 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')
26+
.addEntry('app', './assets/app.js')
2727
//.addEntry('page1', './assets/js/page1.js')
2828
//.addEntry('page2', './assets/js/page2.js')
2929

0 commit comments

Comments
 (0)