web-essentials

Web Essential for Visual Studio Sass compile wrong

我的梦境 提交于 2020-01-25 09:01:25
问题 I am using Visual Studio 2013 Update 4 and Web Essentials. I am coding a web site with Sass (scss) and I have problem with compile it. I have read many articles that Web Essentials doesn´t support it, but I found it works even in options. But there is a problem, for example: $primaryColor: #eeccff; body { $primaryColor: #ccc; background: $primaryColor; } p { color: $primaryColor; } Paragraph (p) have color: #ccc, that is not correct. Any advice? Thanks. EDIT: How can I upgrade the Sass

WebEssentials tslint custom rules

有些话、适合烂在心里 提交于 2020-01-25 07:03:24
问题 I have a tslint.json file in my solution directory and I'm trying to create a custom rule following the guidelines on https://www.npmjs.com/package/tslint I have created a "nonImportsRule.ts", have copied the code from the link and have added "no-imports": true to my tslint.json file however the rule is not being picked up. The guide says that a rulesDirectory needs to be specified, but I have no idea where this should be configured? Also - is it possible to setup Web Essentials to break the

Web Essentials' RTLCSS tool does not work

江枫思渺然 提交于 2020-01-04 05:20:15
问题 I am using Web Essentials extension with Visual Studio 2013. I want to use Web Essentials' CSS RTL tool . But when I run that tool on my CSS files nothing happens. Web Essentials don't generate any RTL file. I've discovered when a css file have css.map file, Web Essentials could generate RTL file also. How can I generate RTL files for every CSS files? 回答1: The issue is related to the latest web essentials package (v2.5) having an updated postcss version that enables inline source maps by

Create LESS source map files with WebEssentials

此生再无相见时 提交于 2020-01-04 02:56:07
问题 According to the WebEssential log LESS souerce maps are supported since Version 1.6 (January 2, 2014) for VS2013 (http://vswebessentials.com/changelog) I have Version 1.9 for VS2013 installed. But source maps are not being generated. What am I missing? Thanks! 回答1: You need to activate the generation of map files in the Web Essential settings. Just open Tools > Options > Web Essentials > LESS in Visual Studio and set Create source map files to true. In addition make sure the web server you

How do I get interface inheritance working correctly when generating WebEssentials Typescript Intellisense?

狂风中的少年 提交于 2019-12-25 03:17:26
问题 I have two classes: [TypeScriptModule("commands")] public class ClientCommand : VoidCommand { public string CommandType { get; set; } } and [TypeScriptModule("commands")] public class PublishEvent : ClientCommand { public string Description { get; set; } public string AnotherProperty { get; set; } } When I use the WebEssentials "Create Typescript Intellisense file" command on these files, the one generated for PublishEvent doesn't include an "extends ClientCommand" expression. A quick scan of

Call Visual Studio 2017 Task Runner from MSBuild?

做~自己de王妃 提交于 2019-12-24 07:57:46
问题 I am using the Bundler & Minifier VS2017 extension for JavaScript and CSS minification and MSBuild for other components of my ASP.NET 4.0 Web Forms solution. Using Task Runner, I created an "After Build" binding so the minification happens after MSBuild. This extension updates the bundle in real time when source file changes are saved so I would like the extension to do its work only when a Release build is created. I suppose there is no way to configure the binding so it only activates for a

The TypeScript compiler couldn't be found

狂风中的少年 提交于 2019-12-24 03:37:20
问题 I am using Visual Studio 2012 and TypeScript version 0.9.5. I am also using web essentials 2.8. After I try to save the TypeScript file, it says: Compile Error. See error list for details The TypeScript compiler couldn't be found. Download http://www.typescriptlang.org/#Download But even downloading latest version did not help. I checked some links but could not find the solution. Right side panel of TypeScript files doesn't update properly Cannot compile TypeScript files in Visual Studio

IIS Express loads and unloads modules for each request

喜你入骨 提交于 2019-12-23 10:59:32
问题 We have an ASP.NET project using IIS Express while debugging. After starting VS2013, then loading the solution, building the solution and starting the web application in debug mode, the output window lists a bunch of DLLs that get loaded and unloaded. After a bit of searching, I discovered that IIS Express rebuilds the site for each request. Here is a small part of the output window: 'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-14-130719418943209850): Loaded 'C:\WINDOWS\Microsoft.Net

TypeScript error Web essential

删除回忆录丶 提交于 2019-12-23 09:05:44
问题 I use Web essentials to compile my typescript files on save (Visual Studio 2012), but i got an empty js and this message : Compile Error. See error list for details error TS5012: Cannot read file 'C:/Users/Nor/Documents/Tribway/tribway-InvitationPage/Tribway/Scripts/Tribway/Invitations.ts': Unsupported file encoding. 回答1: File encoding was an issue with TS 0.9.0 Fixed in the latest version. You can download 0.9.1 from here : https://typescript.codeplex.com/releases/view/102929 PS: I recommend

TypeScript source map files don't work with Chrome

强颜欢笑 提交于 2019-12-23 08:35:40
问题 I'm trying to get TypeScript source debugging working in Chrome, but I'm running into two specific and perhaps related problems. The first is that the comment generated by the TypeScript/WebEssentials compiler that's supposed to identify the location of the source map file looks like this: //sourceMappingUrl=MySourceFile.js.map But Chrome won't read that file. It seems expect that the comment will look like this: //@ sourceMappingUrl=MySourceFile.js.map If I manually change the comment to