1.0.12 • Published 5 years ago

malta-header-comment v1.0.12

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

npm version npm downloads npm downloads


This plugin can be used on: .html, .xml, .svg, .js, .css, .less, .scss, .php, .java, .ts

Options :
- name : path of the file containing the text that must be prepended, the path is relative to the execution folder
- nostrict : by default 'no strict'; is added at the top of the script; in case is not desired this is an optional parameter to skip it, the value passed is not relevant

In the header file it is possible to use the __SIZE__ placeholder, il will be replaced with "~nKB" where n is the size of the output file.

Sample usage:

malta app/source/style.css public/css -plugins=malta-css-uglify...malta-header-comment[name:\"licence.txt\",nostrict:true]

or in the .json file :

"app/source/style.css" : "public/css -plugins=malta-css-uglify...malta-header-comment[name:\"licence.txt\"]"

or in a script :

var Malta = require('malta');
Malta.get().check([
    'app/source/style.css',
    'public/css',
    '-plugins=malta-css-uglify...malta-header-comment[name:\"licence.txt\"]',
    '-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('=========');
    });
1.0.11

5 years ago

1.0.12

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.18

9 years ago

0.0.17

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago