file-copy-plugin

1.2.1 • Public • Published

file-copy-plugin

Copies files directly to the output path

Installation

npm install --save-dev file-copy-plugin

Usage

const path = require('path');
const FileCopyPlugin = require('ngtemplates-autoloader-plugin');

// ...

plugins: [
	// This example will copy all files ending in .ext in the assets folder, if their pathnames include the string 'copy'.
	new FileCopyPlugin({
		// Path to look for files to copy in
		path: path.join(__dirname, 'assets'),

		// File glob
		glob: '**/*.ext',

		// A function or regex to filter which files to include.
		// Can also be a boolean; true will include all files that match
		// the glob, and false will completely disable the plugin.
		test: file => file.include('copy')
	})
]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.1
    1
  • 1.2.0
    0
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i file-copy-plugin

Weekly Downloads

1

Version

1.2.1

License

MIT

Last publish

Collaborators

  • configurator