Spaces:
Runtime error
Runtime error
neon_arch
commited on
Commit
β’
41c57bd
1
Parent(s):
bca2ba1
π¨ chore: make clippy linter happy (#359)
Browse files
build.rs
CHANGED
@@ -14,9 +14,14 @@ use std::{
|
|
14 |
};
|
15 |
|
16 |
// ------- Constants -------
|
|
|
17 |
const COMMON_STATIC_SOURCE_CODE_FOLDER: &str = "./public/static/";
|
|
|
|
|
18 |
const STYLE_FOLDERS: [&str; 2] = ["themes", "colorschemes"];
|
|
|
19 |
const PACKAGE_ENVIRONMENT_VARIABLE: &str = "PKG_ENV";
|
|
|
20 |
const PRODUCTION_PKG_ENV_VARIABLE_VALUE: &str = "prod";
|
21 |
|
22 |
/// A main function which minifies both css and js files using `lightningcss` and `minify_js` when
|
|
|
14 |
};
|
15 |
|
16 |
// ------- Constants -------
|
17 |
+
/// A constant for the path to the public/theme folder in the codebase.
|
18 |
const COMMON_STATIC_SOURCE_CODE_FOLDER: &str = "./public/static/";
|
19 |
+
/// A constant for the names of the folders located in the "/public/static/"
|
20 |
+
/// folder in the codebase which contains the css files to be minified.
|
21 |
const STYLE_FOLDERS: [&str; 2] = ["themes", "colorschemes"];
|
22 |
+
/// A constant for the environment variable name.
|
23 |
const PACKAGE_ENVIRONMENT_VARIABLE: &str = "PKG_ENV";
|
24 |
+
/// A constant for the `prod` value of the `pkg_env` environment variable.
|
25 |
const PRODUCTION_PKG_ENV_VARIABLE_VALUE: &str = "prod";
|
26 |
|
27 |
/// A main function which minifies both css and js files using `lightningcss` and `minify_js` when
|