初始化项目模板
This commit is contained in:
1 parent
80fd6a1d4b
commit
b3a69a1f27
69 files changed
+11088
No files matched your search
@@ -0,0 +1,27 @@
|
||||
const path = require('path');
|
||||
const config = require('./config');
|
||||
const resolve = (p) => {
|
||||
return path.resolve(__dirname, p);
|
||||
};
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
module.exports = {
|
||||
// 增加前辍避免样式冲突
|
||||
// prefix: 'zhs-',
|
||||
// 注意此处,一定要 `path.resolve` 一下, 传入绝对路径
|
||||
// 你要有其他目录,比如 components,也必须在这里,添加一下
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
'custom-color': '#9C032D',
|
||||
},
|
||||
},
|
||||
},
|
||||
variants: {},
|
||||
plugins: [],
|
||||
content: ['./pages/**/*.{html,js,ts,jsx,tsx,vue}', './components/**/*.{html,js,ts,jsx,tsx,vue}'].map(resolve),
|
||||
corePlugins: {
|
||||
// 跨多端可以 h5 开启,小程序关闭
|
||||
preflight: false,
|
||||
},
|
||||
...config,
|
||||
};
|
||||
Reference in new issue
Block a user