Skip to content
This repository was archived by the owner on Nov 23, 2019. It is now read-only.
This repository was archived by the owner on Nov 23, 2019. It is now read-only.

Support CSS variables #5

Open
Open

Description

@gelambert

Hello,

Do you plan to support CSS variables ?
Currently, minification fails because of it.

Thanks for your answer.

Activity

  1. RichardD2 commented on Aug 17, 2018

    @RichardD2

    This is particularly important if you're using Bootstrap 4, since that now uses CSS variables.

    Example error message:

    Minification failed. Returning unminified contents.
    (6,10): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
    
  2. gelambert commented on Aug 31, 2018

    @gelambert
    Author

    Hey @RichardD2,

    I'm using Bootstrap 4 too, so I'm in the same boat !
    Did you find any alternative (other library) ?
    For my part, I think I will give a try to Bundler & Minifier

    Thanks for your answer !

  3. RichardD2 commented on Aug 31, 2018

    @RichardD2

    @gelambert: I ended up using a modified version of Max Vasilyev's BetterStyleBundle, but based on Bundle instead of StyleBundle to exclude the CssMinify transform. Since Bootstrap has pre-minified files, I just added those to the bundle directly.

    bundles.Add(new BetterStyleBundle("~/css/core").Include(
        "~/js/lib/bootstrap/css/bootstrap.min.css",
        "~/js/lib/fontawesome/font-awesome.min.css",
        "~/css/site.min.css"));
    

    My BetterStyleBundle code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions