Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
briancwald opened this issue Sep 13, 2017 · 0 comments
Open

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

briancwald opened this issue Sep 13, 2017 · 0 comments

Comments

@briancwald
Copy link
Owner

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:

  • Concat all top level JS files in /js/ folder into a single file.
  • Minify the JS
  • Remove the sourcemaps from the material_admin.css
  • Minify material_admin.css

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant