In my libraries.yml files the css files are linked with the relative url paths.
Eg : /css/mycss.html
So when in the page source the linked url shows as relative. How do I link those files with absolute URL path?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityIn my libraries.yml files the css files are linked with the relative url paths.
Eg : /css/mycss.html
So when in the page source the linked url shows as relative. How do I link those files with absolute URL path?
This is the example from the official documentation, notice this bit type: external
:
angular.angularjs:
remote: https://github.com/angular/angular.js
version: 1.4.4
license:
name: MIT
url: https://github.com/angular/angular.js/blob/master/LICENSE
gpl-compatible: true
js:
https://ajax.googleapis.com/ajax/libs/angularjs/1.4.4/angular.min.js: { type: external, minified: true }