3.0.1 • Published 8 years ago

metalsmith-offline v3.0.1

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

metalsmith-offline

A metalsmith plugin to make your metalsmith website work offline.

Uses application cache manifest.

PRs welcome to get this to use a hybrid of service workers falling back to application cache.

Warning: To prevent bugs, try to add this as the last plugin in your metalsmith pipeline.

Installation

npm install --save metalsmith-offline

CLI Usage

{
  "plugins": {
    "metalsmith-offline": {
      "trailingSlash": false
    }
  }
}

Javascript API

var offline = require('metalsmith-offline');
 
metalsmith.use(offline({
  trailingSlash: false
}));

Options

trailingSlash

False by default.

If true, offline-enabled URLs will have trailing slashes

In example:

/blog/ would be valid, but /blog would not be.

3.0.1

8 years ago

3.0.0

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago