ohseesoftware/laravel-vite-manifest 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

ohseesoftware/laravel-vite-manifest

最新稳定版本:v1.2.0

Composer 安装命令:

composer require ohseesoftware/laravel-vite-manifest

包简介

Simple Blade directive to include Vite files from a manifest.

README 文档

README

Current Release Build Status Badge Downloads MIT License

Overview

The Laravel Vite Manifest package adds a Blade directive to include Vite's JS and CSS output files, pulled from the generated manifest file. The main logic of this package was sourced from https://github.com/andrefelipe/vite-php-setup.

Usage

composer require ohseesoftware/laravel-vite-manifest

Add the @vite directive where you want to include the JS and CSS files:

// app.blade.php

@vite

By default, the directive will attempt to include the js/app.js file. However, if you have a different entrypoint file, you can pass that into the directive:

// app.blade.php

@vite(js/main.js)

It is recommended you include your source .css files from within your source js/app.js file. This will allow Vite to include it as a dependency.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email security@ohseesoftware.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

统计信息

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

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-21