Skip to content

Commit 676afcb

Browse files
authored
Improve copyFiles method examples #2
Fix also `to` option in examples - paths are relative to build dir, not root dir.
1 parent 2b623f7 commit 676afcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -441,13 +441,13 @@ class Encore {
441441
* Encore.copyFiles({
442442
* from: './assets/images',
443443
* pattern: /\.(png|jpg|jpeg)$/,
444-
* to: 'assets/images/[path][name].[ext]'
444+
* to: 'images/[path][name].[ext]'
445445
* })
446446
*
447447
* // Version files
448448
* Encore.copyFiles({
449449
* from: './assets/images',
450-
* to: 'assets/images/[path][name].[hash:8].[ext]'
450+
* to: 'images/[path][name].[hash:8].[ext]'
451451
* })
452452
*
453453
* // Add multiple configs in a single call

0 commit comments

Comments
 (0)