How to generate a source map for minified CSS generated by dotless

Tags: css,source-maps,dotless

Problem :

I'm using dotless to generate a minified CSS file via pre-build task.

Now i wonder how to create an appropriate file for that minified CSS file. Any ideas?

Solution :

Dotless doesn't currently have support for generating map files. See Here

.map files are usually generated on the creation of the minified file due to having to match up perfectly.

Your best option for generating a .map file would be to compile whatever CSS you have in the normal less compiler and copy it across to your project.

Less Command Line: Documenation

The above documenation shows about command line usage and also, if you scroll down to the options it will give you information regarding source maps etc.

    CSS Howto..

    How to use environment variables in ReactJS imported CSS?

    How to implement :root { font-size: calc(100vw / 40); } to scale font-size(s)

    How to automate background width in CSS

    How to prevent mobile browser micro-shrinking HTML block level elements?

    With CSS, how do you unhighlight a link after clicking a different link?

    How to set a child's element 50px narrower to its parent element in css? [closed]

    How to create a “dot-dash” border with css or javascript?

    how to embed css in sass, or use + selector in sass?

    how is Zurb's Foundation Menu button coded?

    How to limit click area to text?

    How to create responsive text on top of an image?

    How to create stretch height block with CSS

    How do you align the vertical center of text to the vertical center of an image?

    how to rewrite relative url in minified css with cssmin?

    How to separate a table cell into two equal parts with different background via css?

    How to manage multiple css files in rails 4?

    How to align an image to the center with css?

    How to make a correct mosaic with CSS?

    How to refer to a CSS style using ASP.NET MVC?

    How to access and modify imported .css files in WordPress style.css file?

    How to get the max width of my css element using javascript

    IE11 CSS bug with clear:right - how to workaround?

    CSS Have a div which can fit 5 li per row how to make 6 go to new line

    How to place a div below another div?

    Please help me understand how to make my first jquery slider

    How to get item to appear on mobile homepage only(wordpress)

    How do I output compressed CSS from Compass?

    How to configure css flexbox so height of one of the block depends on it content?

    How can I apply CSS to dropdownlists?

    How to reference / link to a Css-File styling elements in a webview for Android