Skip to content

Commit

Permalink
chore(example): add env
Browse files Browse the repository at this point in the history
  • Loading branch information
northernCold committed May 29, 2024
1 parent 768359a commit 82e4d0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/shadcn-admin/src/lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { type ClassValue, clsx } from 'clsx'
import { twMerge } from 'tailwind-merge'
import cssMap from 'twst:css-map'

const cssMap = import.meta.env.TWST_CSS_MAP ?? {};
console.log(cssMap);
const shortToOriginMap = new Map<string, string>(Object.entries(cssMap))
const originToShortMap = new Map<string, string>(
Object.entries(cssMap).map(([k, v]) => [v, k])
)

console.log(shortToOriginMap, originToShortMap)
export function cn(...inputs: ClassValue[]) {
const classnames = clsx(inputs)
const before = classnames
Expand Down
3 changes: 3 additions & 0 deletions examples/vue-cli-vue3/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import HelloWorld3 from './components/HelloWorld3.vue';
<HelloWorld2 msg="two" />
<HelloWorld3 msg="three" />
</template>
<script>
console.log(process.env)
</script>

<style>
#app {
Expand Down

0 comments on commit 82e4d0a

Please sign in to comment.