parent
ae3f8329c2
commit
a7c8c67c83
|
|
@ -7,7 +7,7 @@ import styleImport from 'vite-plugin-style-import';
|
||||||
|
|
||||||
export function configStyleImportPlugin(isBuild: boolean) {
|
export function configStyleImportPlugin(isBuild: boolean) {
|
||||||
if (!isBuild) return [];
|
if (!isBuild) return [];
|
||||||
const pwaPlugin = styleImport({
|
const styleImportPlugin = styleImport({
|
||||||
libs: [
|
libs: [
|
||||||
{
|
{
|
||||||
libraryName: 'ant-design-vue',
|
libraryName: 'ant-design-vue',
|
||||||
|
|
@ -18,5 +18,5 @@ export function configStyleImportPlugin(isBuild: boolean) {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
return pwaPlugin;
|
return styleImportPlugin;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ export function getAppEnvConfig() {
|
||||||
VITE_GLOB_UPLOAD_URL,
|
VITE_GLOB_UPLOAD_URL,
|
||||||
} = ENV;
|
} = ENV;
|
||||||
|
|
||||||
if (!/[a-zA-Z\_]*/.test(VITE_GLOB_APP_SHORT_NAME)) {
|
if (!/^[a-zA-Z\_]*$/.test(VITE_GLOB_APP_SHORT_NAME)) {
|
||||||
warn(
|
warn(
|
||||||
`VITE_GLOB_APP_SHORT_NAME Variables can only be characters/underscores, please modify in the environment variables and re-running.`
|
`VITE_GLOB_APP_SHORT_NAME Variables can only be characters/underscores, please modify in the environment variables and re-running.`
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue