1.0.3 • Published 11 months ago

11ty-external-file-downloader v1.0.3

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
11 months ago

11ty-external-file-downloader

Usage

Install

npm i 11ty-external-file-downloader

Basic Usage

// .eleventy.js
const downloader = require('11ty-external-file-downloader');

module.exports = function(eleventyConfig) {
  eleventyConfig.addPlugin(downloader, {
    urls: [
      'https://example.com/cool.css',
      'https://example.com/dope.js'
    ]
  });
}

Options

urls

  • default: []
  • syntax: list

directory

  • default: _site/external
  • syntax: a string reletive to root dir

fileName

  • default: [name].[ext]
  • syntax: string
    • [name] = the original file name (excluding extention)
    • [ext] = the extention of the original file
1.0.2

11 months ago

1.0.3

11 months ago

1.0.1

1 year ago

1.0.0

1 year ago