Commit 2832be4c authored by DPFly's avatar DPFly

更新格式化规则,README增加提示

parent b6985545
{
"printWidth": 80,
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"semi": false,
......
# ptfw-uniapp
> 注意:在 git commit 之前建议主动执行代码格式化命令 yarn run pretty,确保格式化后的代码能够正常运行,不然 git commit 时会自动进行格式化,打断提交;代码格式化操作只对已暂存的文件生效,即只对 git add 的文件进行格式化。
const pkg = require('./package.json')
module.exports = {
parser: require('postcss-comment'),
plugins: [
require('postcss-import'),
require('autoprefixer')({
remove: process.env.UNI_PLATFORM !== 'h5'
remove: process.env.UNI_PLATFORM !== 'h5',
}),
require('@dcloudio/vue-cli-plugin-uni/packages/postcss')
]
require('@dcloudio/vue-cli-plugin-uni/packages/postcss'),
],
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment