Questions tagged [web-compiler]

A Visual Studio extension that compiles LESS, Sass Stylus, JSX, ES6 and CoffeeScript files.

https://marketplace.visualstudio.com/items?itemName=MadsKristensen.WebCompiler

Features

  • Compilation of LESS, Scss, Stylus, JSX, ES6 and (Iced)CoffeeScript files
  • Saving a source file triggers re-compilation automatically
  • Specify compiler options for each individual file
  • Error List integration MSBuild support for CI scenarios
  • Minify the compiled output
  • Minification options for each language is customizable
  • Shows a watermark when opening a generated file
  • Shortcut to compile all specified files in solution
  • Task Runner Explorer integration Command line interface
  • Integrates with Web Analyzer
56 questions
1
vote
2 answers

BundlerMinifier and WebCompiler does not output files on build

We've just removed Gulp from our build and using the Bundler & Minifier (https://github.com/madskristensen/BundlerMinifier) and Compiler (https://github.com/madskristensen/WebCompiler) and both the bundleconfig.json and compilerconfig.json have…
1
vote
0 answers

VS 2017 WebCompiler doesn't compile .jsx files on save

I've recently migrated to MS Visual Studio 2017 Enterprise and installed the Web Compiler plugin. However, the compile-on-save functionality doesn't work which is very annoying. I saw a couple of issues on GitHub about other people having the same…
Martin Shishkov
  • 2,709
  • 5
  • 27
  • 44
1
vote
1 answer

VS web compiler, on minify css media queries disappear

I am using LESS to generate one CSS file from several smaller LESS files. Then this big file gets minified, and I use the minified version on my site. For the compilation of the LESS I am using "Web Compiler v.1.11.326" on visual studio 2015.…
1
vote
0 answers

Visual Studio 2015 web compiler not back-tracing errors

I'm compiling a file manifest scss file called Site.scss which @import's a list of partial .scss files. I'm using Web Essentials and Web Compiler. Sometimes, if there is a compile error in one of the partials it doesnt backtrace to the line of the…
drav
  • 498
  • 1
  • 4
  • 15
1
vote
1 answer

Web Compiler and Compass in Visual Studio 2015

I've installed Web Compiler 1.11.315 by Mads Kristensen, and I'm trying to configure it now to recognize my Compass imports. Compass modifies SASS, and therefore, I've been unable to figure out how to install it properly. The best I've been able to…
0
votes
1 answer

How do I update the Browserslist for use with WebCompiler in Visual Studio?

I don't use node directly at all, but I do use Visual Studio with the "Web Compiler 2022+" extension. I wanted to use the autoprefixer option, so updated 'compilerconfig.json.defaults' in my website project to include: "sass": { …
HFloyd
  • 328
  • 2
  • 11
0
votes
0 answers

Can we use Web Compiler 2022+ with scoped scss files?

I can easily generate the main CSS file from multiple SCSS files, and save the output in wwwroot/css/generated-site.css for example. My concern is with Razor Page/View specific Sass file. Let's say I…
acmoune
  • 2,981
  • 3
  • 24
  • 41
0
votes
1 answer

Compiling all SCSS files into one CSS file with Web compiler 2022+ in Visual Studio 2022

Is there a way to compile all .scss files in a /scss folder into a single .css that can sit inside the wwwroot/css/ folder in a .net/razor pages application? I currently have Web Compiler 2022+ installed but it doesn't group files together. I've…
0
votes
1 answer

Webcompiler - How to compile scss imports to css files in another folder

When compiling scss from one folder to another folder, imported paths do not compile correctly. I assume I'm just doing something wrong. I haven't found any instructions for doing this (assuming its possible). I have a "Styles" folder that…
kingua
  • 61
  • 6
0
votes
0 answers

Web Compiler Package Output File is overwritten

I am using Web Compiler in Visual Studio 2019 to compile my sass file into a single output file. I noticed that the more I add another input file, the output file only has the CSS from the last file inpit. Can there be multiple inputs? These are my…
A.Mac
  • 203
  • 3
  • 19
0
votes
2 answers

SCSS file compiles in Visual Studio 2019 but not in 2022

I have a number of import statements at the top of the SCSS file in a project I've inherited. Here are the relevant statements: ... @import "node_modules/bulma/bulma.sass"; ... @import "node_modules/buefy/src/scss/buefy.scss"; ... Using…
0
votes
0 answers

How to run a .json compiler whenever I save in Visual Studio

I'm new to ASP.NET and using WebCompiler to compile my SCSS, so it compiles whenever main.scss is saved using the JSON below that is generated by the WebCompiler. My problem is whenever I save something on the any other .SCSS file it does not…
PacSmack
  • 13
  • 3
0
votes
1 answer

Visual Studio Code auto compiling every EXACT minute in React project

For some reason, my VScode keeps auto-compiling every 60 seconds on my React project (generated by create-react-app). I tried disabling all extensions but even then the issue persists. I have validated that files are not saved when this compiling…
0
votes
0 answers

Incompatible units 'rem' and '0'

I'm using AdminLte as my base for styling. I added WebCompiler so I can use scss files. So I created a new scss file and the first line is: @use '../../wwwroot/AdminLte/dist/css/adminlte.css'; However, when I compile I get the following…
Ivan-Mark Debono
  • 15,500
  • 29
  • 132
  • 263
0
votes
1 answer

How to fix "OperationError: Operation on an invalid type" when running WebCompiler

Changing computers forced me to install VS2022 and the WebCompiler 2022+ extension. When running my compiler, the following error is generated: OperationError: Operation on an invalid type in ......./file.less. The line in question has the following…
Rudolf Lamprecht
  • 1,050
  • 1
  • 14
  • 37