Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #18945 > unrolled thread
| Started by | Fx ROOM <naso@tata.new> |
|---|---|
| First post | 2022-05-25 16:25 +0200 |
| Last post | 2022-05-27 13:47 +0200 |
| Articles | 4 — 2 participants |
Back to article view | Back to comp.lang.php
lavarel: compiled files Fx ROOM <naso@tata.new> - 2022-05-25 16:25 +0200
Re: lavarel: compiled files Arno Welzel <usenet@arnowelzel.de> - 2022-05-26 17:45 +0200
Re: lavarel: compiled files Fx ROOM <naso@tata.new> - 2022-05-27 11:09 +0200
Re: lavarel: compiled files Arno Welzel <usenet@arnowelzel.de> - 2022-05-27 13:47 +0200
| From | Fx ROOM <naso@tata.new> |
|---|---|
| Date | 2022-05-25 16:25 +0200 |
| Subject | lavarel: compiled files |
| Message-ID | <t6le7v$61v$1@gioia.aioe.org> |
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
[toc] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2022-05-26 17:45 +0200 |
| Message-ID | <jf9lkeFu8j6U1@mid.individual.net> |
| In reply to | #18945 |
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
[toc] | [prev] | [next] | [standalone]
| From | Fx ROOM <naso@tata.new> |
|---|---|
| Date | 2022-05-27 11:09 +0200 |
| Message-ID | <t6q4ga$uin$2@gioia.aioe.org> |
| In reply to | #18946 |
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
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2022-05-27 13:47 +0200 |
| Message-ID | <jfbs1jFcgsgU1@mid.individual.net> |
| In reply to | #18947 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web