1.2.16 • Published 2 years ago

malta-browser-refresh v1.2.16

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

npm version npm downloads npm downloads


This plugin can be used on: .html files and even on .md and .pug files after using the right plugin

It observers js and css files with a relative path and refreshes the browser automatically when one of those changes.

Options :
- mode : decide use the xhr mode or the ws mode; default is ws

warning : use this plugin only for development purposes

Sample usage:

malta app/source/index.html public -plugins=malta-browser-refresh[mode:\"xhr\"]

or in the .json file :

"app/source/index.html" : "public -plugins=malta-browser-refresh"

or in a script :

var Malta = require('malta');
Malta.get().check([
    'app/source/index.html',
    'public',
    '-plugins=malta-browser-refresh',
    '-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.2.16

2 years ago

1.2.15

3 years ago

1.2.14

3 years ago

1.2.12

3 years ago

1.2.13

3 years ago

1.2.11

3 years ago

1.2.10

3 years ago

1.2.9

4 years ago

1.2.8

4 years ago

1.2.6

4 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago