We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37099
    • 338 Posts
    I'm trying to use SmartOptimizer to compress and concatanate my css files.

    It works with one file, but as soon as I try two files (setarated by a comma) I get an error "SmartOptimizer Error: File is out of base directory". But the files are in the same directory as the one that works.

    Any suggestions?

    Thanks
    Mike


    Revo 2.2.6

    This question has been answered by thingstodo. See the first response.

    • discuss.answer
      • 37099
      • 338 Posts
      I sussed out what I was doing wrong.

      To concatanate and minify more than one css file the files need to be in the same directory and be called like this:

      <link rel="stylesheet" href="[[SmartOptimizer?&files=`assets/path/file1.css,file2.css` ]]"/>

      I was calling it like this:

      <link rel="stylesheet" href="[[SmartOptimizer?&files=`assets/path/file1.css,assets/path/file2.css` ]]"/>