mali-ui-plus 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/env/index.d.ts +1 -1
- package/env/index.js +2 -1
- package/package.json +1 -1
package/env/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export function getCustomName(custom: string): string
|
|
|
5
5
|
export function getPlatformName(platform: string): string
|
|
6
6
|
export function getSubModuleName(module: string): string
|
|
7
7
|
export function initEnv(dirPath: string, defaultEnv: Record<string, string>): Record<string, string>
|
|
8
|
-
export function getSCSSAdditionalData(envConfig
|
|
8
|
+
export function getSCSSAdditionalData(envConfig?: any): string
|
|
9
9
|
export function sendMail(options: {
|
|
10
10
|
receivedBy: string | string[]
|
|
11
11
|
subject: string
|
package/env/index.js
CHANGED
|
@@ -78,7 +78,8 @@ function parseEnvFile (dirPath, name) {
|
|
|
78
78
|
return {}
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
function getSCSSAdditionalData (
|
|
81
|
+
function getSCSSAdditionalData (conf) {
|
|
82
|
+
const envConfig = conf || process.env
|
|
82
83
|
const rest = [
|
|
83
84
|
`@import "${pack.name}/style/variable.scss";`,
|
|
84
85
|
`$global-static-url: '${envConfig.VUE_APP_PUBLIC_RESOURCES_URL}';`
|