search

Home  >  Q&A  >  body text

laravel - How to specify the directory for Elixir's version number method?

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?

曾经蜡笔没有小新曾经蜡笔没有小新2811 days ago388

reply all(1)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-16 16:52:23

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

    reply
    0
  • Cancelreply