Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Css_pipeline_include_externals ignored with Grav 1.6

Started by maxime 7 years ago · 2 replies · 518 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 Anna, 24 hours ago
2 72 3 hours ago
Support · by gtx, 1 week ago
4 234 2 days ago
Support · by Paul Hodges, 2 weeks ago
13 283 5 days ago
Support · by Anna, 3 weeks ago
9 340 1 week ago
Support · by TomW, 2 weeks ago
4 192 2 weeks ago