Alpha Video Training
Results 1 to 6 of 6

Thread: Minifying/Compressing CSS

  1. #1
    Member
    Real Name
    Stephen Irving
    Join Date
    Nov 2018
    Location
    Charleston, SC
    Posts
    15

    Default Minifying/Compressing CSS

    I have a very large sass file I am using in my Alpha Anywhere application, and obviously the style builder converts that to CSS. For a production app, I know that CSS files, especially very large ones, should be minified to maximize optimization. I have not been able to find a way to do this in Alpha though. If I compile the sass myself and then minify it, it gets written over when Alpha builds. Surely there must be a way to do this within Alpha. Can anyone point me in the right direction? Would really appreciate it, thank you.

  2. #2
    Member
    Real Name
    Sparticuz
    Join Date
    Jun 2009
    Location
    Clearwater, FL
    Posts
    512

    Default Re: Minifying/Compressing CSS

    It would be nice to disable scss generation in the theme builder. I build my scss theme outside of alpha then just overwrite all the css in the theme builder.

  3. #3
    Member
    Real Name
    Sparticuz
    Join Date
    Jun 2009
    Location
    Clearwater, FL
    Posts
    512

    Default Re: Minifying/Compressing CSS

    Looks like you can paste your css directly into the css file of your theme and it will publish it appropriately. (minified). Only compiles the scss on save in the web builder apparently.

  4. #4
    Member
    Real Name
    Stephen Irving
    Join Date
    Nov 2018
    Location
    Charleston, SC
    Posts
    15

    Default Re: Minifying/Compressing CSS

    Quote Originally Posted by Sparticuz View Post
    Looks like you can paste your css directly into the css file of your theme and it will publish it appropriately. (minified). Only compiles the scss on save in the web builder apparently.
    Thank you for the reply! I actually figured that out late last night through trial and error. Kind of a pain but it is going to save me about 30kb so I am happy to have figured out a workaround.

  5. #5
    Member
    Real Name
    Sparticuz
    Join Date
    Jun 2009
    Location
    Clearwater, FL
    Posts
    512

    Default Re: Minifying/Compressing CSS

    I've given up on saving bandwidth. Their built in js file is a few Megs and they've told me they are not going to be slimming that down any time soon

  6. #6
    Member
    Real Name
    Stephen Irving
    Join Date
    Nov 2018
    Location
    Charleston, SC
    Posts
    15

    Default Re: Minifying/Compressing CSS

    Our app is painfully slow right now so I'm shaving anywhere possible.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •