Improve phrasing

This commit is contained in:
Paulo Pinto 2021-08-18 16:59:57 +01:00
parent 5dcf3e1eaf
commit 74bc3c1dab

View file

@ -15,15 +15,16 @@ limitations under the License.
*/ */
/** /**
* This code will be autoremoved on production builds. * This code is removed on production builds.
* The purpose of this code is that the webpack's `string-replace-loader` *
* pretty much search for this string in this specific file and replaces it * Webpack's `string-replace-loader` searches for the `use theming` string
* like a macro before any previous compilations, which allows us to inject * in this specific file, and replaces it with CSS requires statements that
* some css requires statements that are specific to the themes we have turned * are specific to the themes we have enabled.
* on by ourselves. Without that very specific workaround, webpack would just *
* import all the CSSes, which would make the whole thing useless, as on my * Without this workaround, webpack would import the CSS of all themes, which
* machine with i9 the recompilation for all themes turned ou would take way * would defeat the purpose of hot-reloading since all themes would be compiled,
* over 30s, which is definitely too high for nice css reloads speed. * which would result in compilation times on the order of 30s, even in a
* powerful machine.
* *
* For more details, see webpack.config.js:184 (string-replace-loader) * For more details, see webpack.config.js:184 (string-replace-loader)
*/ */