gpt4 book ai didi

php - Laravel Elixr 复制方法不起作用

转载 作者:搜寻专家 更新时间:2023-10-31 21:31:11 24 4
gpt4 key购买 nike

我正在尝试使用 elixr 从我的 vendor/bower_components 文件夹中复制一些 js 文件,但是在运行 gulp 时它们不会复制。

elixir(function(mix) { mix.less('app.less')
.copy('underscore/underscore.js', 'public/js/vendor/underscore.js'); });

gulp没有报错。

[14:12:58] Using gulpfile ~/Public/balloonprinting_l5/gulpfile.js
[14:12:58] Starting 'default'...
[14:12:58] Starting 'less'...
[14:12:58] Running Less: resources/assets/less/app.less
[14:12:59] Finished 'default' after 506 ms
[14:13:00] gulp-notify: [Laravel Elixir] Less Compiled!
[14:13:00] Finished 'less' after 1.74 s
[14:13:00] Starting 'copy'...
[14:13:00] Finished 'copy' after 2.86 ms

最佳答案

您需要指定完整的源路径:

elixir(function(mix) { mix.less('app.less')
.copy(
'bower_components/underscore/underscore.js',
'public/js/vendor/underscore.js'
);
});

如您所见,我将 bower_components/ 添加到源路径,这是默认的 bower 包文件夹。

关于php - Laravel Elixr 复制方法不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29896370/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com