Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Css_pipeline_include_externals ignored with Grav 1.6

Started by maxime 7 years ago · 2 replies · 574 views
7 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
7 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 blu3prince, 4 days ago
1 82 12 hours ago
Support · by complanar, 7 days ago
6 163 2 days ago
Support · by Rick Beebe, 7 days ago
2 121 4 days ago
Support · by alex, 5 days ago
2 105 4 days ago
Support · by Marcel, 2 weeks ago
1 155 5 days ago