Skip to content

Empty @media queries generated when compiling less file with (reference) to bootstrap #2991

Closed
ITSecOps-404/aports
#1
@stilren

Description

@stilren

This bug was originally reported to WebCompiler but was stated to be a bug with the node-less module. Please refer to original bug report for more information:

madskristensen/WebCompiler#269

Installed product versions

  • Visual Studio: 2015 Professional
  • Web Compiler extension: 1.11.319
  • Bootstrap less 3.3.7

Description

Empty @media queries generated when compiling less file with (reference) to bootstrap

Steps to recreate

  1. Download bootstrap less files from http://getbootstrap.com/getting-started/#download

  2. Create a less file with a reference import to bootstrap.less and use a mixin:
    image

  3. Compile your less file

Current behavior

The css file contains many empty @media queries
image

Expected behavior

The css file should not contain empty @media queries
.mybutton { padding: 1px 1px; font-size: 1px; line-height: 1px; border-radius: 1px; }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions