srakapunch.blogg.se

Codekit wordpress theme compression
Codekit wordpress theme compression




codekit wordpress theme compression
  1. CODEKIT WORDPRESS THEME COMPRESSION INSTALL
  2. CODEKIT WORDPRESS THEME COMPRESSION UPDATE

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. Please feel free to improve our compressed output with a pull request. This does an okay job but does not utilise all the tricks of dedicated css compression. Strict Imports lessc -strict-importsĪllow Imports from Insecure HTTPS Hosts lessc -insecureĬompress using less built-in compression. 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

CODEKIT WORDPRESS THEME COMPRESSION 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 not tie people who do not use clean css into having it downloaded by npm.

CODEKIT WORDPRESS THEME COMPRESSION UPDATE

  • update the dependency and integration without a less release.
  • We have removed the dependency on clean css and moved it to a plugin. Edit the markdown source for "v2-upgrade"Ĭolours now output as they are written, so purple stays as purple and is not converted to its hex representation.






    Codekit wordpress theme compression