Skip to content
This repository was archived by the owner on Jul 11, 2021. It is now read-only.
This repository was archived by the owner on Jul 11, 2021. It is now read-only.

Issue with non relative urls and production building #2

@antonkomarev

Description

@antonkomarev

After using urlAdjuster gulp --production breaking CSS while just gulp is working correctly.

mix.urlAdjuster('public/assets/css/all.css', {
    replace: ['../icons', '/assets/icons']
}, 'public/assets/css');

I'm getting this URLs for google fonts which paths are weren't relative:

http://test.int/assets/icons/http:/fonts.gstatic.com/s/opensans/v13/k3k702ZOKiLJc3WVjuplzC3USBnSvpkopQaUR-2r7iU.ttf

Fonts are importing in CSS this way:

@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,600,700,300,800&subset=latin,cyrillic-ext,latin-ext);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions