Giter VIP home page Giter VIP logo

laravel-compile-views's Introduction

Laravel Compile Views

Build Status styleci Scrutinizer Code Quality SensioLabsInsight

Packagist Packagist Packagist

Recently view:cache command was built in Laravel. So there is no need in this package anymore :)

Missing view:compile command for laravel.

The perfect solution in combination with blade minifier: get minified compiled views with zero cost during your deploy script.

Installation

Install via composer

composer require melihovv/laravel-compile-views

Following step is optional if you use laravel>=5.5 with package auto discovery feature.

Add service provider to config/app.php in providers section

Melihovv\LaravelCompileViews\ServiceProvider::class,

Usage

php artisan view:compile

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

This package is bootstrapped with the help of melihovv/laravel-package-generator.

laravel-compile-views's People

Contributors

melihovv avatar szepeviktor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

laravel-compile-views's Issues

Readme for rookies

Please add that in config/app.php one should add Melihovv\LaravelCompileViews\ServiceProvider::class,

Thanks.

A question, will close it once cleared

Hi, just a quick question, do I have to php artisan view:clear before running your view:compile command? I mean, is there any chance there will be duplicated compiled view if I dont do view clear first? Thanks.

Some Laravel views (pagination) compiled, some not (emails, errors)

I have not yet dug through the code in this project yet, but I did notice some weird behavior in what the command actually compiles.

For example, after running the command, I had compiled views for my project /resources/views and for some Laravel-packaged views (/vendor/laravel/framework/src/Illuminate/Pagination/resources/views) but not all Laravel-packaged views (/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views).

I am going to dig into the package a bit and see if I can turn this into a PR.

A question, not an issue: output is separate folder with the same structure

Hi, I also use L5.5. Just a question, can the output is also a folder with the exact structure and filename of the original resource/view folder, but the file is already a compiled version?
The reason is that I use SourceGuardian to temporarily encrypt my code to be deployed to Client, then when everything is done (payment etc), full code will be given.
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.