ColdBox Elixir
v2.x
v2.x
  • Introduction
  • Overview
  • Changelog
  • Installation
  • Running Elixir
  • Configuration Options
  • Working With Stylesheets
  • Working With Scripts
  • Versioning Cache Busting
    • ColdBox Helper Methods
  • Mixing in tasks from ColdBox Modules
  • Copying Files & Directories
  • Deleting Files & Directories
  • Executing Command Line Binaries
  • Calling Gulp Tasks
  • Custom Watchers
  • BrowserSync
  • Vue.js Integration
  • Writing Elixir Extensions
Powered by GitBook
On this page
Edit on Git

Copying Files & Directories

The copy method may be used to copy files and/or directories to new locations. All operations are relative to the project's root directory:

elixir( function( mix ){
    mix.copy( 'resources/vendor/foo/bar.css', 'includes/css/bar.css' );
} );

elixir( function( mix ){
    mix.copy( 'vendor/package/views', 'views' );
} );

Tip: The first argument can be a file or folder path or an array of paths. You can also use any globbing patterns.

PreviousMixing in tasks from ColdBox ModulesNextDeleting Files & Directories

Last updated 6 years ago