Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
ptfw-uniapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
侯忠英
ptfw-uniapp
Commits
2832be4c
Commit
2832be4c
authored
Jul 26, 2019
by
DPFly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新格式化规则,README增加提示
parent
b6985545
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
.prettierrc
.prettierrc
+1
-1
README.md
README.md
+1
-0
postcss.config.js
postcss.config.js
+3
-4
No files found.
.prettierrc
View file @
2832be4c
{
"printWidth":
8
0,
"printWidth":
10
0,
"tabWidth": 2,
"useTabs": false,
"semi": false,
...
...
README.md
View file @
2832be4c
# ptfw-uniapp
> 注意:在 git commit 之前建议主动执行代码格式化命令 yarn run pretty,确保格式化后的代码能够正常运行,不然 git commit 时会自动进行格式化,打断提交;代码格式化操作只对已暂存的文件生效,即只对 git add 的文件进行格式化。
postcss.config.js
View file @
2832be4c
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'
)
,
]
,
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment