All Versions
30
Latest Version
Avg Release Cycle
33 days
Latest Release
-

Changelog History
Page 3

  • v6.3.0 Changes

    • โž• Added an update notifier
  • v6.2.0 Changes

    • ๐Ÿ†• New plugin "custom-selector"
  • v6.1.0 Changes

    • ๐Ÿ†• New plugin "custom-media"
  • v6.0.0 Changes

    • ๐Ÿ†• New version of stylecow-parser (2.0) with a lot of fixes and speed improvements
  • v5.0.0 Changes

    • โœ‚ Removed --input, --output, --code and --map configuration
    • ๐Ÿ’… Simplified api. The command stylecow execute is now simply stylecow
    • ๐Ÿ’… On create new configuration file with stylecow init, all plugins are selected by default
    • โž• Added support for convert various files. From now, the stylecow.json structure has the following format:
    {
      "files": [
        {
          "input": "styles.css",
          "output": "styles.min.css",
          "map": "styles.min.map",
        },{
          "input": "styles2.css",
          "output": "styles2.min.css",
          "map": "styles2.min.map",
        }
      ]
    }
    
  • v4.2.0 Changes

    • ๐Ÿ’… Included the command line interface (and deprecate stylecow-cli package)
    • ๐Ÿ’… Separate the parser in an external package: stylecow-parser
  • v4.1.0 Changes

    • ๐Ÿ—„ The plugin "initial" is deprecated. Now it's included in "fixes"
  • v4.0.0 Changes

    • ๐Ÿ“œ Rewritten the parser to be more consitent
    • ๐Ÿ”„ Changed some API methods to create and traverse through the elements
    • ๐Ÿ’… The standard plugins are included as dependencies, so they are installed with stylecow
  • v3.1.0 Changes

    • Implemented source maps
    • ๐Ÿ‘Œ Improved error handling. Now on error, a stylecow.Error() class is throwed
    • ๐Ÿ’… Changed the way the code is generated. Now there is the stylecow.Code class. For example:
    var stylecow = require('stylecow');
    
    //Get some code
    var css = stylecow.createFromFile('my-styles.css');
    
    //Configure the code
    var code = new stylecow.Code(css, {
        output: 'styles.min.css', //output filename
        style: 'minify', //minify the code
        sourceMap: 'styles.min.map',  //The source map file
        previousSourceMap: 'styles.map' //Set this value if there is the file has a source map created by other preprocessor, such less/sass and it's not defined in the code.
    });
    
    //Save the output css file and source map
    code.save();
    
    //Get the code as string:
    console.log(code.code);
    
    //Get the source map
    console.log(code.map)
    
    • ๐Ÿ†• New stylecow.merge() function to merge two files: ```js var main_css = stylecow.createFromFile('styles1.css'); var other_css = stylecow.createFromFile('styles2.css');

    //Merges "other_css" into "main_css" stylecow.merge(main_css, other_css);

  • v3.0.0 Changes

    • ๐Ÿ“œ The parser has been completely rewriten.
    • ๐ŸŽ Performance improved x2
    • ๐Ÿ‘Œ Support for any type of at-rule
    • ๐Ÿ‘ Better API
    • ๐Ÿ”€ The plugin "linear-gradient" was merged with "prefixes"