laravel - How to specify the directory for Elixir's version number method?
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-05-16 16:50:23
0
1
363

Specify single or multiple files like this;

// 指定单个文件
elixir(function(mix) {
    mix.version('path/to/file');
});
// 指定多个文件
elixir(function(mix) {
    mix.version(['path/to/file1', 'path/to/file2']);
});

So what if you want to specify all files in the entire directory?
Found that the native writing method of gulp cannot be used;

elixir(function(mix) {
    mix.version('css/**/*.css');
});

Then the question comes; if you want all css files in the css directory to use version, how do you need to write it?

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(1)
曾经蜡笔没有小新

The native writing method of gulp is OK; I finally found the problem; it was a problem elsewhere that affected me;

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template