samedi 27 juin 2015

What is the best way to version our assets?

Currently, I'm using elixir for laravel framework which is default.

and My current system is like that, But it is making build & dist folders, and in the build folder there is also another dist folder, and it disturbs me.

Build folder is for rendered assets,Dist folder for versioning.

elixir(function(mix) {
  mix.less([
      'app.less'
  ]).coffee([
      'app.coffee'
  ]).styles([
      'bootstrap.min.css',
      'app.css'
  ],"public/dist/css","public/css").scripts([
      'bootstrap.min.js',
      'app.js'
  ],"public/dist/js","public/js").version([
      "dist/css/all.css",
      "dist/js/all.js"
  ]);
});

What is your way?

Aucun commentaire:

Enregistrer un commentaire