1.0.12 • Published 3 years ago

malta-header-comment v1.0.12

Weekly downloads
4
License
MIT
Repository
github
Last release
3 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

3 years ago

1.0.12

3 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.18

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

8 years ago

0.0.2

8 years ago