承接 fastfony/webapp-webpack-encore-vue-sfc-pack 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fastfony/webapp-webpack-encore-vue-sfc-pack

最新稳定版本:v1.0.1

Composer 安装命令:

composer require fastfony/webapp-webpack-encore-vue-sfc-pack

包简介

An other webapp pack on top of the default skeleton for compiling Vue single-file component (i.e. .vue) with Webpack Encore.

README 文档

README

Latest Stable Version Total Downloads License

An other pack to install on top of the default Symfony skeleton. Include webpack-encore-bundle and necessary things for Vue single-file component (i.e. .vue)

It's a similar pack to symfony/webapp-pack but for persons would like to continue to use webpack and .vue files (Single-file component), instead of AssetMapper.

Installation

After creating Symfony Applications, in your project directory:

composer remove symfony/asset-mapper symfony/stimulus-bundle symfony/ux-turbo
composer require fastfony/webapp-webpack-encore-vue-sfc-pack
npm install -D vue-loader --force

Then, start your project as usual (with Symfony CLI, Docker, etc.) and don't forget to enable watch mode with npm run watch for compile assets and automatically re-compile when files change.

Keep Going!

Optional configuration

With this command you can configure webpack for silence the recommandation about "To create a smaller (and CSP-compliant) build" and for only use Vue Single-file component (see also: Runtime Compiler Build):

sed -i '' 's/\.enableVueLoader()/.enableVueLoader(() => {}, { runtimeCompilerBuild: false })/' webpack.config.js

Informations

With webpack-encore-bundle and without AssetMapper you can still use Stimulus & Symfony UX and Turbo!

You can also complete your pack with :

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-10