|
Learning with Texts - Fork
2.10.0-fork
Learn foreign languages with texts
|
JS and CSS minifier. More...
Namespaces | |
| Lwt_Documentation | |
Functions | |
| minifyJS ($path, $outputPath) | |
| minifyCSS ($path, $outputPath) | |
| minifyAllJS () | |
| minifyAllCSS () | |
| regenerateSingleTheme ($parent_folder, $theme_folder) | |
| regenerateThemes () | |
| minify_everything () | |
JS and CSS minifier.
Use this script to minify JS and CSS files from src/js and src/css to js/ and css/.
PHP version 8.1
| minify_everything | ( | ) |
One-do-all command to minify all your JS, CSS, and regenerate themes.
| minifyAllCSS | ( | ) |
Minify all Cascading-Style Sheet (CSS) files
| minifyAllJS | ( | ) |
Minify all JavaScript files
| minifyCSS | ( | $path, | |
| $outputPath | |||
| ) |
Minify a JavaScript file and outputs the result to css/
| string | $path | Input file path with extension. |
| string | $outputPath | Output file path with extension |
| minifyJS | ( | $path, | |
| $outputPath | |||
| ) |
Minify a JavaScript file and outputs the result to js/
| string | $path | Input file path with extension. |
| string | $outputPath | Output file path with extension |
| regenerateSingleTheme | ( | $parent_folder, | |
| $theme_folder | |||
| ) |
Regenerate a single theme.
| string | $parent_folder | Path to the parent folder (I. E. src/themes/) |
| string | $theme_folder | Name of the theme folder |
| regenerateThemes | ( | ) |
Find and regenerate all themes. CSS is minified while other files are copied.
Nested folders are ignored.