Git Product home page Git Product logo

Comments (6)

failwyn avatar failwyn commented on July 1, 2024

Can you try upgrading the extension to the latest version? If that doesn’t fix it, can you provide the scss file and your compilerconfig so that I can try to replicate the issue?

// I’m planning a new release next week if I can replicate this issue I can hopefully squeeze this in

from webcompiler.

razvan000 avatar razvan000 commented on July 1, 2024

According to VS2022 I am already on the latest stable version (1.14.9.1). I tried reinstalling the extension but the issue persists. As for the files, I am able to provide compilerconfig.json, but the target scss file is merely a bunch of imports.

compilerconfig.json:

[
  {
    "inputFile": "wwwroot/css/Styles/homepage.scss",
    "outputFile": "wwwroot/css/Styles/homepage.css",
    "minify": {
      "enabled": true
    }
  }
]

mockup homepage.scss:

@charset "utf-8";
@import "libs/first-file";
@import "homepage/second-file";

from webcompiler.

failwyn avatar failwyn commented on July 1, 2024

I’d be happy to take a look at it if you can get me a reproduction sample; config and scss files.

from webcompiler.

razvan000 avatar razvan000 commented on July 1, 2024

sure, here goes:

compilerconfig.json

[
  {
    "inputFile": "wwwroot/css/Styles/homepage.scss",
    "outputFile": "wwwroot/css/Styles/homepage.css",
    "minify": {
      "enabled": true
    },
    // added the following bit , thinking the issue might be related to invisible white space, but it doesn't really help
    "options": {
      "lineFeed": "crlf"
    }
  }
]

homepage.scss

@charset "utf-8";
@import "libs/first-file";
@import "homepage/second-file";

wwwroot/libs/first-file.scss

This one is just a library, i.e bootstrap so the contents are from their cdn: https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap-theme.min.css

wwwroot/homepage/second-file.scss

.second-file {
    color: red;

    p {
        font-style: normal;
    }

    .custom-input:focus {
        border-color: inherit;
        box-shadow: none;
    }

    .left-panel {
        color: blue;
        font-size: 18px;
        text-shadow: initial;
        top: 63%;
        white-space: nowrap;
        left: -1rem;
    }

    .right-panel {
        color: blue;
        font-size: 18px;
        text-shadow: initial;
        top: 63%;
        white-space: nowrap;
        right: -1rem;
    }

    section {
        font-size: 18px;
    }

    .title {
        font-weight: bold;
    }

    .btn {
        @include sm {
            min-width: 25% !important;
            margin: 10px 0px 20px 10px;
        }

        @include mobile {
            width: 100%;
            margin: 20px 0px 10px 0px;
        }
    }
}

steps to reproduce

Checkout to a different branch. Sometimes a git operation (pull/merge) or a rebuild is required but ultimately, the .css files (homepage and homepage.min) will appear in git changes, having 0 visible modifications.

Thanks for the patience

from webcompiler.

razvan000 avatar razvan000 commented on July 1, 2024

@failwyn any updates on this issue?

from webcompiler.

failwyn avatar failwyn commented on July 1, 2024

@razvan000 I'm not able to replicate it; I'm compiling all of the Kendo SASS themes in my application and I'm not seeing any unintended changes in git. Is it possible that your git is changing the line endings?

from webcompiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.