1.0.1 • Published 3 years ago

netlify-plugin-move-file v1.0.1

Weekly downloads
56
License
ISC
Repository
github
Last release
3 years ago

Netlify Plugin to Move File into Publish Directory

Build plugin to move a file into the publish directory. Very useful in order to move logs etc.

Installation and Configuration

There are two ways to install a plugin on a Netlify site: with the Netlify UI or with file-based installation.

UI-based Installation

Currently not supported.

File-based Installation

  1. Create a netlify.toml in the root of your project. Your file should include the plugins section below:

    [build]
      command = "hugo --logFile hugo-log.txt"
      publish = "public"
    
    [[plugins]]
      package = "netlify-plugin-move-file"
        [plugins.inputs]
        filePath = "hugo-log.txt"
  2. From your project's base directory, use npm, yarn, or any other Node.js package manager to add this plugin to devDependencies in package.json.

    npm install -D netlify-plugin-move-file

    or

    yarn add -D netlify-plugin-move-file

Read more about file-based plugin installation in our docs.

Configuration

Specify the file to move via the filePath input.