mirror of
https://gitee.com/h_mo/uniapp-vue3-vite-ts-template
synced 2025-04-24 10:20:25 +08:00
chore: remove tailwind configuration file
- Deleted the tailwind.config.js file as part of project restructuring. - This change simplifies the configuration management for styling.
This commit is contained in:
parent
3a4a200c3b
commit
6dca8501ac
@ -132,7 +132,7 @@
|
|||||||
├─ package.json
|
├─ package.json
|
||||||
├─ pnpm-lock.yaml
|
├─ pnpm-lock.yaml
|
||||||
├─ README.md
|
├─ README.md
|
||||||
├─ tailwind.config.js
|
├─ unocss.config.ts
|
||||||
├─ tsconfig.json
|
├─ tsconfig.json
|
||||||
└─ vite.config.ts
|
└─ vite.config.ts
|
||||||
|
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
import { getIconCollections, iconsPlugin } from '@egoist/tailwindcss-icons';
|
|
||||||
import { isMp } from './build/platform';
|
|
||||||
|
|
||||||
const spacing = {
|
|
||||||
0: '0px',
|
|
||||||
};
|
|
||||||
|
|
||||||
let i = 0;
|
|
||||||
|
|
||||||
while (i <= 750) {
|
|
||||||
spacing[`${i}px`] = `${i}px`;
|
|
||||||
spacing[`${i}rpx`] = `${i}rpx`;
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @type {import('tailwindcss').Config} */
|
|
||||||
export default {
|
|
||||||
content: ['./public/index.html', './src/**/*.{html,js,ts,jsx,tsx,vue}'],
|
|
||||||
theme: {
|
|
||||||
extend: {
|
|
||||||
spacing,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
corePlugins: {
|
|
||||||
// 小程序去使用 h5 的 preflight 和响应式 container 没有意义
|
|
||||||
preflight: !isMp,
|
|
||||||
container: !isMp,
|
|
||||||
},
|
|
||||||
plugins: [iconsPlugin({
|
|
||||||
collections: getIconCollections(['mdi', 'svg-spinners']),
|
|
||||||
})],
|
|
||||||
};
|
|
Loading…
x
Reference in New Issue
Block a user