Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Css_pipeline_include_externals ignored with Grav 1.6

Started by maxime 8 years ago · 2 replies · 727 views
8 years ago

Hello

I tried the following configuration with Grav 1.6.3:

YAML
assets:
  css_pipeline: true
  css_pipeline_include_externals: false

But assets such as https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css (which, as far as I understand, should be considered external) get unified together with local CSS files.

Strangely, when I add '{ position: after }' to the parameters of assets.addCss() for each external links and if I clear the cache, those external links do not get included in the unified pipeline file. But after I reload the page, they get included again..

Anyway css_pipeline_include_externals: false alone should be enough without the need of '{ position: after }', right?

last edited 04/15/19 by maxime
8 years ago

Actually this is not completely working. The "css_pipeline_include_externals: false" is working fine, but I can't control the position of the external links. I want them to be referenced before the pipeline unified CSS file. I have tried the ‘{ position: before }’ and ‘{ position: after }’ attributes but they don't have any effect on the position of the external links in the HTML page.

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 weeks ago
8 227 8 hours ago
Support · by alex, 2 months ago
8 667 23 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 5 days ago