diff --git a/index.js b/index.js index 1415936a..ab487080 100644 --- a/index.js +++ b/index.js @@ -441,13 +441,14 @@ class Encore { * Encore.copyFiles({ * from: './assets/images', * pattern: /\.(png|jpg|jpeg)$/, - * to: 'assets/images/[path][name].[ext]' + * // to path is relative to the build directory + * to: 'images/[path][name].[ext]' * }) * * // Version files * Encore.copyFiles({ * from: './assets/images', - * to: 'assets/images/[path][name].[hash:8].[ext]' + * to: 'images/[path][name].[hash:8].[ext]' * }) * * // Add multiple configs in a single call