malta-css-uglify

1.0.9 • Public • Published

npm version npm downloads npm downloads

This plugin can be used on: .css files and on .less and .scss files after using the right plugin

Options : all options of the uglifycss package

Sample usage:

malta app/source/style.css public/css -plugins=malta-css-uglify[maxLineLen:100,uglyComments:true]

or in the .json file :

"app/source/style.css" : "public/css -plugins=malta-css-uglify",
"app/source/hi.less" : "public/css -plugins=malta-less...malta-css-uglify",
"app/source/app.scss" : "public/css -plugins=malta-sass...malta-css-uglify"

or in a script :

var Malta = require('malta');
Malta.get().check([
    'app/source/style.css',
    'public/css',
    '-plugins=malta-coffeescript',
    '-options=showPath:false,watchInterval:500,verbose:0'
    ]).start(function (o) {
        var s = this;
        console.log('name : ' + o.name)
        console.log("content : \n" + o.content);
        'plugin' in o && console.log("plugin : " + o.plugin);
        console.log('=========');
    });

Package Sidebar

Install

npm i malta-css-uglify

Weekly Downloads

274

Version

1.0.9

License

MIT

Unpacked Size

3.23 kB

Total Files

4

Last publish

Collaborators

  • fedeghe