Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: octoper/statamic-inline-assets
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.0
Choose a base ref
...
head repository: octoper/statamic-inline-assets
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Oct 30, 2020

  1. Update composer.json

    octoper authored Oct 30, 2020
    Copy the full SHA
    56267a3 View commit details
  2. Update issue templates

    octoper authored Oct 30, 2020
    Copy the full SHA
    8fce932 View commit details

Commits on Nov 1, 2020

  1. Delete composer.lock

    octoper authored Nov 1, 2020
    Copy the full SHA
    0d2da3b View commit details
  2. Update composer.json

    octoper authored Nov 1, 2020
    Copy the full SHA
    645eefb View commit details

Commits on Nov 15, 2020

  1. Update issue templates

    octoper authored Nov 15, 2020
    Copy the full SHA
    f8f4fb5 View commit details

Commits on Dec 3, 2020

  1. Apply fixes from StyleCI

    octoper authored and StyleCIBot committed Dec 3, 2020
    Copy the full SHA
    ab74640 View commit details
  2. Merge pull request #5 from octoper/analysis-2Qd04g

    Apply fixes from StyleCI
    octoper authored Dec 3, 2020
    Copy the full SHA
    5567854 View commit details

Commits on Jan 7, 2021

  1. Add ignore missing bool

    When files are missing because you are building critical css
    everythig errors, this makes it easy to ignore if missing
    Chris de Jong committed Jan 7, 2021
    Copy the full SHA
    0f83f6e View commit details

Commits on Jan 8, 2021

  1. Merge pull request #6 from Grisgruis/master

    Add ignore missing bool
    octoper authored Jan 8, 2021
    Copy the full SHA
    9caea36 View commit details

Commits on Jan 20, 2021

  1. Bump laravel/framework from 8.21.0 to 8.23.1

    Bumps [laravel/framework](https://github.com/laravel/framework) from 8.21.0 to 8.23.1.
    - [Release notes](https://github.com/laravel/framework/releases)
    - [Changelog](https://github.com/laravel/framework/blob/8.x/CHANGELOG-8.x.md)
    - [Commits](laravel/framework@v8.21.0...v8.23.1)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jan 20, 2021
    Copy the full SHA
    ad88dee View commit details
  2. Merge pull request #7 from octoper/dependabot/composer/laravel/framew…

    …ork-8.23.1
    
    Bump laravel/framework from 8.21.0 to 8.23.1
    octoper authored Jan 20, 2021
    Copy the full SHA
    b002790 View commit details

Commits on Feb 2, 2021

  1. Bump laravel/framework from 8.23.1 to 8.26.1

    Bumps [laravel/framework](https://github.com/laravel/framework) from 8.23.1 to 8.26.1.
    - [Release notes](https://github.com/laravel/framework/releases)
    - [Changelog](https://github.com/laravel/framework/blob/8.x/CHANGELOG-8.x.md)
    - [Commits](laravel/framework@v8.23.1...v8.26.1)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Feb 2, 2021
    Copy the full SHA
    a9df9ca View commit details

Commits on Feb 3, 2021

  1. Merge pull request #8 from octoper/dependabot/composer/laravel/framew…

    …ork-8.26.1
    
    Bump laravel/framework from 8.23.1 to 8.26.1
    octoper authored Feb 3, 2021
    Copy the full SHA
    e5052cc View commit details

Commits on Apr 29, 2021

  1. Bump composer/composer from 2.0.8 to 2.0.13

    Bumps [composer/composer](https://github.com/composer/composer) from 2.0.8 to 2.0.13.
    - [Release notes](https://github.com/composer/composer/releases)
    - [Changelog](https://github.com/composer/composer/blob/master/CHANGELOG.md)
    - [Commits](composer/composer@2.0.8...2.0.13)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Apr 29, 2021
    Copy the full SHA
    0d8e477 View commit details

Commits on Apr 30, 2021

  1. Bump laravel/framework from 8.26.1 to 8.40.0

    Bumps [laravel/framework](https://github.com/laravel/framework) from 8.26.1 to 8.40.0.
    - [Release notes](https://github.com/laravel/framework/releases)
    - [Changelog](https://github.com/laravel/framework/blob/8.x/CHANGELOG-8.x.md)
    - [Commits](laravel/framework@v8.26.1...v8.40.0)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Apr 30, 2021
    Copy the full SHA
    fc5dfd5 View commit details
  2. Merge pull request #11 from octoper/dependabot/composer/laravel/frame…

    …work-8.40.0
    
    Bump laravel/framework from 8.26.1 to 8.40.0
    octoper authored Apr 30, 2021
    Copy the full SHA
    0d63f62 View commit details
  3. Merge pull request #10 from octoper/dependabot/composer/composer/comp…

    …oser-2.0.13
    
    Bump composer/composer from 2.0.8 to 2.0.13
    octoper authored Apr 30, 2021
    Copy the full SHA
    3cbc8ad View commit details

Commits on Aug 19, 2021

  1. Copy the full SHA
    a3606a5 View commit details

Commits on Aug 28, 2021

  1. Merge pull request #13 from dimitri-koenig/master

    Added base64 data stream support
    octoper authored Aug 28, 2021
    Copy the full SHA
    5e24863 View commit details

Commits on Oct 5, 2021

  1. Bump composer/composer from 2.0.13 to 2.1.9

    Bumps [composer/composer](https://github.com/composer/composer) from 2.0.13 to 2.1.9.
    - [Release notes](https://github.com/composer/composer/releases)
    - [Changelog](https://github.com/composer/composer/blob/master/CHANGELOG.md)
    - [Commits](composer/composer@2.0.13...2.1.9)
    
    ---
    updated-dependencies:
    - dependency-name: composer/composer
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Oct 5, 2021
    Copy the full SHA
    da7e8c1 View commit details
  2. Merge pull request #14 from octoper/dependabot/composer/composer/comp…

    …oser-2.1.9
    
    Bump composer/composer from 2.0.13 to 2.1.9
    octoper authored Oct 5, 2021
    Copy the full SHA
    88b651a View commit details

Commits on Mar 4, 2024

  1. Looking for maintainers

    octoper authored Mar 4, 2024
    Copy the full SHA
    19b3567 View commit details
Showing with 5,747 additions and 398 deletions.
  1. +18 −0 .github/ISSUE_TEMPLATE/bug_report.md
  2. +24 −1 README.md
  3. +2 −1 composer.json
  4. +5,676 −393 composer.lock
  5. +27 −3 src/InlineAssets.php
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Bug report
about: Report a general library issue.
title: "[BUG]"
labels: ''
assignees: octoper

---

- Statamic Inline Assets Version Version: #.#.#
- Laravel Version: #.#.#
- Statamic Version: #.#.#
- PHP Version: #.#.#

### Description:


### Steps To Reproduce:
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,8 @@

# Inline assets

> **Looking for maintainers**: As I'm not using Statamic these days and I don't have a the time to maintain the package I'm looking for anyone who want to take the ownerhip of it! You can reach out via email me@octoper.me
> Inline assets for Statamic
## Installation
@@ -15,7 +17,7 @@ composer require octoper/statamic-inline-assets

## Inline Asset tag

Inline assets will inline your CSS or JS file to your HTML.
Inline assets will inline your CSS or JS file to your HTML, or inline a file encoded with base64.

Inline assets can help you speed of your Statamic website by inlining critical CSS you can check more about that by reading this article [Extract critical CSS](https://web.dev/extract-critical-css/)

@@ -45,6 +47,27 @@ You can also minify your js or css assets.
</script>
```

You usually got a chicken or the egg problem with critical css, so you can ignore if missing

```twig
<script>
{{ inline_assets:css ignore-missing="true" src="css/site.css" }}
</script>
```

You can also inline your file as an base64 encoded data stream, for example taking your favicon and including it inline.

```twig
<link rel="icon" type="image/x-icon" href="data:image/x-icon;base64,{{ inline_assets:base64 src="favicon.ico" }}"/>
```

You usually got a chicken or the egg problem with critical css, so you can ignore if missing

```twig
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml;base64,{{ inline_assets:base64 ignore-missing="true" src="favicons/favicon.svg" }}">
```


## Security

If you discover any security related issues, please email [me@octoper.me](mailto:me@octoper.me) instead of using the issue tracker.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -26,7 +26,8 @@
},
"require": {
"php": ">=7.4",
"illuminate/support": "^7.16",
"statamic/cms": "^3.0",
"illuminate/support": "^7.0 || ^8.0",
"matthiasmullie/minify": "^1.3"
}
}
Loading