briancwald / material_admin

Drupal 8 Admin Theme
GNU General Public License v2.0
48 stars 15 forks source link

Set up gulp to allow for dev and production environements #36

Open briancwald opened 7 years ago

briancwald commented 7 years ago

To increase performance we should be concatenating and minify our CSS/JS for the theme. Using a tool like Gulp Util will allow us to set a --production flag which we can run various tasks:

Preliminary manual tests show that it's about a 600ms increase in page load.

Problem:

If we minify the js/css and set the libraries.yml to point to the production files, how can we easily switch between that version and the development version locally without manually editing the .yml file?