Skip to content

Commit

Permalink
refactor: add global scss
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud committed Nov 27, 2024
1 parent b512259 commit 887fd71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/build-taro.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,13 @@ async function copyStyles() {
let content = [
`@import '../theme-default.scss';`,
`@import '../theme-dark.scss';`,
`@import '../font-face.scss';`,
`@import '../jd-font';`,
]
const projectID = process.env.VITE_APP_PROJECT_ID
if (projectID) {
content = [
`@import '../theme-${projectID}.scss';`,
`@import '../font-face.scss';`,
`@import '../jd-font';`,
]
}

Expand Down
4 changes: 2 additions & 2 deletions scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ async function copyStyles() {
let content = [
`@import '../theme-default.scss';`,
`@import '../theme-dark.scss';`,
`@import '../font-face.scss';`,
`@import '../jd-font';`,
]
const projectID = process.env.VITE_APP_PROJECT_ID
if (projectID) {
content = [
`@import '../theme-${projectID}.scss';`,
`@import '../font-face.scss';`,
`@import '../jd-font';`,
]
}

Expand Down

0 comments on commit 887fd71

Please sign in to comment.