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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Css_pipeline_include_externals ignored with Grav 1.6

Started by maxime 7 years ago · 2 replies · 446 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 Thomas, 1 week ago
2 54 12 hours ago
Support · by Anna, 3 days ago
2 60 15 hours ago
Support · by Justin Young, 16 hours ago
1 30 15 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 57 5 days ago