Comments (6)
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.
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.
I’d be happy to take a look at it if you can get me a reproduction sample; config and scss files.
from webcompiler.
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.
@failwyn any updates on this issue?
from webcompiler.
@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)
- The 'WebCompilerInitPackage" package did not load correctly. HOT 8
- Js Complier (1.14.9.2 ) not working in lastest Visual Studio(17.4.2)! HOT 21
- Version 14.9.2 changes "0 none" to "0 0" during minification HOT 9
- Relative Path for Imported SCSS not Compiling to Proper Path HOT 3
- cant work in linux HOT 3
- "math" option in compilerconfig defaults not working HOT 12
- Problem with compiling HOT 18
- VS Gallery link pointing at old version HOT 2
- Context menus not displaying HOT 2
- Resulting CSS file only contains comments from @use dependencies HOT 1
- Feature: Group media queries HOT 1
- Issue compiling partial .scss files in folders HOT 1
- Extention is not correct working with @container instead @media
- Not working on Visual Studio Mac HOT 4
- Validation warning shown for valid css, how to turn this off ? HOT 1
- sass.cmd is not recognized as an internal or external command HOT 5
- Sourcemap in css has an absolute path HOT 1
- node-sass is now deprecated HOT 3
- Question: Looking for guidance using compiler/bundler with Razor Class Library (RCL) projects HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webcompiler.