承接 exounx/vasri 相关项目开发

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

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

exounx/vasri

Composer 安装命令:

composer require exounx/vasri

包简介

Easy subresource integrity and versioning for local assets

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version Build Status Scrutinizer Code Quality License

Vasri

Easy subresource integrity and versioning for local assets

This is also meant to replace the Laravel Mix helper.

Install

composer require exounx/vasri

Publish the config

php artisan vendor:publish --provider="ExoUNX\Vasri\Providers\VasriServiceProvider"

Usage

Note: If you use a CDN like Cloudflare that processes your assets at their edge servers, I recommend you disable it and process your scripts beforehand otherwise assets may not load

You'll need to generate the manifest first and every time the assets change

php artisan vasri:build

For CSS

<link rel="stylesheet" {!! vasri('/css/app.css') !!}/>

For JS

<script {!! vasri('/js/app.js') !!}></script>

By default Vasri is configured to read the mix-manifest.json in your public Laravel directory.

If you don't wish to use the mix manifest you can disable it in the config

'mix-manifest' => false,

You'll need to specify your assets manually in the config if you disable mix-manifest support

'assets' => [
    '/css/app.css',
    '/js/app.js',
]

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固