Hi,
Did I miss something?
It is not possible anymore to copy several files at once?
// Fonts
mix.copy([
'node_modules/bootstrap-sass/assets/fonts',
'node_modules/font-awesome/fonts/fontawesome-webfont.eot',
'node_modules/font-awesome/fonts/fontawesome-webfont.svg',
'node_modules/font-awesome/fonts/fontawesome-webfont.ttf',
'node_modules/font-awesome/fonts/fontawesome-webfont.woff',
'node_modules/font-awesome/fonts/fontawesome-webfont.woff2',
'node_modules/font-awesome/fonts/FontAwesome.otf'
], 'public/fonts');
yarn run dev
yarn run v0.18.1
$ node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
95% emitting
ERROR Failed to compile with 1 errors
error
Path must be a string. Received [ 'node_modules/bootstrap-sass/assets/fonts',
'node_modules/font-awesome/fonts/fontawesome-webfont.eot',
'node_modules/font-awesome/fonts/fontawesome-webfont.svg',
'node_modules/font-awesome/fonts/fontawesome-webfont.ttf',
'node_modules/font-awesome/fonts/fontawesome-webfont.woff',
'node_modules/font-awesome/fonts/fontawesome-webfont.woff2',
'node_modules/font-awesome/fonts/FontAwesome.otf' ]
Asset Size Chunks Chunk Names
/js/admin.534d689a9bad56db9eb5.js 882 kB 0 [emitted] [big] /js/admin
/css/admin.8439a64d84663d9b78da.css 2.38 kB 0 [emitted] /js/admin
mix-manifest.json 116 bytes [emitted]
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@jrean copy() method's first argument must be a string, you pass an array
I know.
I'm asking why a change. Before array was allowed :-)
On Feb 7, 2017, at 6:00 PM, iraklisg notifications@github.com wrote:
@jrean copy() method's first argument must be a string, you pass an array
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
You can use a glob pattern, like this: node_modules/font-awesome/fonts/*
I didn't realize that you could pass an array before. I've just pushed a commit to allow you to do:
mix.copy(['one.txt', 'two.txt'], 'output/path');
Thank you @JeffreyWay !
Most helpful comment
I didn't realize that you could pass an array before. I've just pushed a commit to allow you to do: