• lavarel: compiled files

    From Fx ROOM@21:1/5 to All on Wed May 25 16:25:03 2022
    https://laravel.com/docs/9.x/structure#the-resources-directory
    The resources directory contains your views as well as your raw,
    un-compiled assets such as CSS or JavaScript.

    ????

    Instead the files in the other directories are compiled?
    o_O

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arno Welzel@21:1/5 to All on Thu May 26 17:45:18 2022
    Fx ROOM:

    https://laravel.com/docs/9.x/structure#the-resources-directory
    The resources directory contains your views as well as your raw,
    un-compiled assets such as CSS or JavaScript.

    ????

    Instead the files in the other directories are compiled?

    Yes.

    Usually for production JavaScript and CSS gets "compiled". This is not
    the same as compiling source code to a binary form, but still the
    "compiled" versions are optimized for production use.

    Example:

    <https://arnowelzel.de/res-3.4.2/wp-content/plugins/lightbox-photoswipe/assets/scripts.js>

    This file is based on multiple "source" files which get combined and
    "minified" for production use. This can also be seen als "compiling"
    something.


    --
    Arno Welzel
    https://arnowelzel.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Fx ROOM@21:1/5 to All on Fri May 27 11:09:30 2022
    Il 26/05/22 17:45, Arno Welzel ha scritto:
    Yes.

    Usually for production JavaScript and CSS gets "compiled". This is not
    the same as compiling source code to a binary form, but still the
    "compiled" versions are optimized for production use.

    Example:

    <https://arnowelzel.de/res-3.4.2/wp-content/plugins/lightbox-photoswipe/assets/scripts.js>

    This file is based on multiple "source" files which get combined and "minified" for production use. This can also be seen als "compiling" something.

    thanks

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Arno Welzel@21:1/5 to All on Fri May 27 13:47:00 2022
    Fx ROOM:

    Il 26/05/22 17:45, Arno Welzel ha scritto:
    Yes.

    Usually for production JavaScript and CSS gets "compiled". This is not
    the same as compiling source code to a binary form, but still the
    "compiled" versions are optimized for production use.

    Example:

    <https://arnowelzel.de/res-3.4.2/wp-content/plugins/lightbox-photoswipe/assets/scripts.js>

    This file is based on multiple "source" files which get combined and
    "minified" for production use. This can also be seen als "compiling"
    something.

    thanks

    In addition - also see LESS and SASS which also "compile" CSS:

    <https://css-tricks.com/sass-vs-less/>

    And you should also know about Webpack:

    <https://webpack.js.org>

    I don't know how Laravel handles this, but in Symfony based projects the preferred way to deal with frontend assets is Webpack Encore:

    <https://www.npmjs.com/package/@symfony/webpack-encore>


    --
    Arno Welzel
    https://arnowelzel.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)