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?
The native writing method of gulp is OK; I finally found the problem; it was a problem elsewhere that affected me;