Skip to content

Autoprefixer comments are stripped out when using sass-loader #638

@wimhendrikx

Description

@wimhendrikx

With version 7.3.0 of sass-loader, compression is also done during the production build process. Apparently, this happens before autoprefixing kicks in (postcss-loader), which causes the necessary grid comments (/* autoprefixer grid: on */) to be removed, thus preventing Grid autoprefixing for IE during production.

I have found 2 possible fixes:

  1. Adding a '!' in the comment => /*! autoprefixer grid: on */
  2. Disable compression in the sass-loader enableSassLoader(function (options) { options.outputStyle = 'expanded'; })

Personally, the 2nd fix seems to be the best solution, but maybe this can be provided by default when compression is already done by postcss-loader?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBug Fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions