Browse Source

refactor: 去掉tailwindcss

develop
wally 4 years ago
parent
commit
4bed47e0f5
  1. 3
      CHANGELOG.md
  2. 2
      package.json
  3. 19
      postcss.config.js
  4. 30
      tailwind.config.js

3
CHANGELOG.md

@ -1,4 +1,4 @@
# 0.1.0 (2021-08-26)
# 0.1.0 (2021-08-29)
### 🌟 新功能
范围|描述|commitId
@ -45,6 +45,7 @@
- | 标题栏变化 | c0fcd9d
- | 标题栏角色栏全局任务组件新建 | 0500cb4
- | 模拟接口测试 | 69e7931
- | 添加 环境变量,动态控制webview project的path | 8a40481
- | 添加子任务插件 子项目插件 | 7bda7e2
- | 添加时间轴上下滚动 | 2b81bbc
- | 添加项目排序 | a0b491b

2
package.json

@ -61,7 +61,6 @@
"@dcloudio/vue-cli-plugin-uni-optimize": "^2.0.0-32220210818002",
"@dcloudio/webpack-uni-mp-loader": "^2.0.0-32220210818002",
"@dcloudio/webpack-uni-pages-loader": "^2.0.0-32220210818002",
"@tailwindcss/postcss7-compat": "^2.2.7",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-plugin-vuex": "~4.5.0",
@ -92,7 +91,6 @@
"puppeteer": "^10.2.0",
"right-pad": "^1.0.1",
"sass-loader": "^8.0.2",
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.7",
"vue-cli-plugin-commitlint": "~1.0.12",
"vue-template-compiler": "^2.6.11"
},

19
postcss.config.js

@ -15,24 +15,7 @@ module.exports = {
return id;
},
}),
// require('autoprefixer')({ remove: process.env.UNI_PLATFORM !== 'h5' }),
require('autoprefixer')({ remove: process.env.UNI_PLATFORM !== 'h5' }),
require('@dcloudio/vue-cli-plugin-uni/packages/postcss'),
require('tailwindcss')({ config: "./tailwind.config.js" }),
...(
process.env.UNI_PLATFORM !== 'h5'
? [
require("postcss-class-rename")({
"\\\\:": "--",
"\\\\/": "--",
"\\\\.": "--",
".:": "--",
"\\\*": "--",
})
] : [
require("autoprefixer")({
remove: true,
}),
]
)
],
};

30
tailwind.config.js

@ -1,30 +0,0 @@
const colors = require('tailwindcss/colors');
module.exports = {
// purge: ['./public/index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
colors: {
blue: colors.sky,
gray: colors.blueGray,
red: colors.red,
orange: colors.orange,
yellow: colors.yellow,
green: colors.green,
pink: colors.rose,
white: colors.white,
black: '#333',
transparent: 'transparent',
},
},
variants: { extend: {} },
plugins: [],
corePlugins: {
space: false,
divideWidth: false,
divideColor: false,
divideStyle: false,
divideOpacity: false,
},
};
Loading…
Cancel
Save