Skip to content
This repository was archived by the owner on Mar 5, 2020. It is now read-only.
This repository was archived by the owner on Mar 5, 2020. It is now read-only.

CSS sourcemaps are broken unless the autoprefixer is disabled #413

Description

@toolness

Aki noticed recently that CSS sourcemaps are currently broken. I think this occurred in f792847 when we migrated from lessprefixer to gulp-autoprefixer. It seems to be due to sindresorhus/gulp-autoprefixer#10, which is still unresolved.

In #386, Aki tried moving to less-plugin-autoprefix to resolve this problem, but that seems to be plagued by less/less-plugin-autoprefix#7 (see also #386 (comment)).

Potential solutions:

  • Move back to lessprefixer. Unfortunately, this will involve changing all our LESS back to lessprefixer's mixins, which may be a bit of a chore at this point.
  • Attempt to downgrade our version of LESS, which Aki reportedly had some success with (but may not have committed to her PR, since it's still not working on my end). Can't do this due to v2.0.3 Undefined is not a function gulp-community/gulp-less#140.
  • Just live with it until either of the aforementioned bugs in less-plugin-autoprefix or gulp-autoprefixer are fixed. In the meantime, we could potentially offer some kind of environment variable that disables the autoprefixer in favor of having usable sourcemaps (this was done in 38de9d2).

The current workaround for this is to disable the autoprefixer by setting LESS_AUTOPREFIXER to off, which was added in 38de9d2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions