File tree Expand file tree Collapse file tree 9 files changed +3005
-1
lines changed
Expand file tree Collapse file tree 9 files changed +3005
-1
lines changed Original file line number Diff line number Diff line change 1515/vendor /
1616.phpunit.result.cache
1717.env
18+ /node_modules
Original file line number Diff line number Diff line change @@ -42,3 +42,4 @@ this code.
4242## Command to running this project for local testing
4343
4444symfony local:server: start
45+ yarn encore dev
Original file line number Diff line number Diff line change 1+ import { createApp } from 'vue' ;
2+ import App from './vue/App.vue' ;
3+
4+ createApp ( App ) . mount ( '#vue-app' ) ;
Original file line number Diff line number Diff line change 1+ <template >
2+ <div >
3+ <h1 >Hello from Vue!</h1 >
4+ </div >
5+ </template >
6+
7+ <script >
8+ export default {
9+ name: ' App'
10+ }
11+ </script >
Original file line number Diff line number Diff line change 3131 "require" : {
3232 "php" : " ^8.1" ,
3333 "phplist/core" : " dev-ISSUE-345" ,
34- "symfony/twig-bundle" : " ^6.4"
34+ "symfony/twig-bundle" : " ^6.4" ,
35+ "symfony/webpack-encore-bundle" : " ^2.2"
3536 },
3637 "require-dev" : {
3738 "phpunit/phpunit" : " ^9.5" ,
Original file line number Diff line number Diff line change 1+ {
2+ "devDependencies" : {
3+ "@babel/core" : " ^7.27.4" ,
4+ "@babel/preset-env" : " ^7.27.2" ,
5+ "@symfony/webpack-encore" : " ^5.1.0" ,
6+ "babel-loader" : " ^10.0.0" ,
7+ "vue-loader" : " ^17.3.1" ,
8+ "vue-template-compiler" : " ^2.7.14" ,
9+ "webpack" : " ^5.99.9" ,
10+ "webpack-cli" : " ^6.0.1" ,
11+ "webpack-notifier" : " ^1.15.0"
12+ },
13+ "dependencies" : {
14+ "vue" : " 3"
15+ }
16+ }
Original file line number Diff line number Diff line change 99 <link rel =" stylesheet" href =" https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" >
1010
1111 {# Add your own custom CSS later if needed #}
12+ {{ encore_entry_link_tags(' app' ) }}
1213</head >
1314<body >
1415<main class =" container mt-5" >
1819{# Optionally include Bootstrap JS if you use interactive components #}
1920<script src =" https://code.jquery.com/jquery-3.5.1.slim.min.js" ></script >
2021<
script src =
" https://cdn.jsdelivr.net/npm/[email protected] /dist/js/bootstrap.bundle.min.js" ></
script >
22+ {{ encore_entry_script_tags(' app' ) }}
2123</body >
2224</html >
Original file line number Diff line number Diff line change 1+ const Encore = require ( '@symfony/webpack-encore' ) ;
2+
3+ Encore
4+ . setOutputPath ( 'public/build/' )
5+ . setPublicPath ( '/build' )
6+ . enableVueLoader ( )
7+ . addEntry ( 'app' , './assets/app.js' )
8+ . cleanupOutputBeforeBuild ( )
9+ . enableBuildNotifications ( )
10+ . enableSourceMaps ( ! Encore . isProduction ( ) )
11+ . enableVersioning ( Encore . isProduction ( ) )
12+ . enableSingleRuntimeChunk ( )
13+ ;
14+
15+ module . exports = Encore . getWebpackConfig ( ) ;
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments