
- Prepros failed to compile undefined mixin install#
- Prepros failed to compile undefined mixin update#
Rootpath lessc -rp=resources/Īllows you to add a path to every generated import and url in your css.

This is for cases when the rootpath and basepath options are not producing exactly what you need. Source Map URL lessc - source-map-url=./my-map.jsonĪllows you to override the URL in the css that points at the map file. This is not recommended for production, but for development it allows the compiler to produce a single output file which in browsers that support it, use the compiled css but show you the non-compiled less source. This option specifies that the map file should be inline in the output CSS. Source Map Map Inline lessc - source-map-map-inline

This can be used in conjunction with the map inline option so that you do not need to have any additional external files at all. This means that you only need your map file to get to your original source. This option specifies that we should include all of the Less files in to the sourcemap. Source Map Less Inline lessc - source-map-less-inline It defaults to the path to the input less file. For instance if you are compiling a file in the less-files directory but the source files will be available on your web server in the root or current directory, you can specify this to remove the additional less-files part of the path. This is the opposite of the rootpath option, it specifies a path which should be removed from the output paths. Source Map Basepath lessc - source-map-basepath=less-files/ So for the option above you might have output.css Use this option if for instance you have a css file generated in the root on your web server but have your source less/css/map files in a different folder. Specifies a rootpath that should be prepended to each of the less file paths inside the sourcemap and also to the path to the map file specified in your output css.īecause the basepath defaults to the directory of the input less file, the rootpath defaults to the path from the sourcemap output file to the base directory of the input less file. Source Map Rootpath lessc - source-map-rootpath=dev-files/ If you have the sourcemap option without a filename it will use the source Less file name but with the extension map. Source Map Output Filename lessc - source-map To use clean-css with lessc, use the clean-css plugin. In v2 of less, Clean CSS is no longer included as a direct dependency. lessc -xĬompress using built-in compression. Strict Imports lessc -strict-importsĪllow Imports from Insecure HTTPS Hosts lessc -insecureĭeprecated. Runs the less parser and just reports errors without any output. So instead of options.sourceMapFullFilename = you would set options.sourceMap = Ĭurrently only used for the data-uri function to ensure that images aren't created that are too large for the browser to handle. The sourcemap options are now to be set on sourceMap instead of directly on options. See Programmatic Usage for more information.įurther, instead of returning a string which is the css, we return an object with a css field set to the string and a map field set to the sourcemap (if applicable). Instead we require you to use the less.render shorthand. We have deprecated the use of less.Parser and toCss to generate the css. We have improved the source map options and path generation so the sourcemap should be generated at the correct path without specifying any options.
Lessc -clean-css= "-compatibility=ie8 -advanced" Sourcemaps Lessc -clean-css -clean-option=-compatibility:ie8 -clean-option=-advanced
Prepros failed to compile undefined mixin install#
The usage is similar, just install the plugin ( npm install -g less-plugin-clean-css) then tell less to use it by using the
Prepros failed to compile undefined mixin update#
