Description Usage Arguments See Also
Using the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | minifyJSDirectory(
directory,
single_file = TRUE,
minified_dir_name = directory,
minified_file_name = paste0(basename(directory), ".min.js")
)
minifyCSSDirectory(
directory,
single_file = TRUE,
minified_dir_name = directory,
minified_file_name = paste0(basename(directory), ".min.css")
)
minifyHTMLDirectory(
directory,
single_file = TRUE,
minified_dir_name = directory,
minified_file_name = paste0(basename(directory), ".min.html")
)
|
directory |
Path to the files to be minified |
single_file |
Should all the files be minified to a single file? Default set to |
minified_dir_name, minified_file_name |
If |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.