[.prettierrc.js] update jsxBracketSameLine:false to bracketSameLine:true so that HTML closing bracket not in a seperate line; [package.json] delete standardx

This commit is contained in:
Luk Lu
2022-10-05 13:10:23 +08:00
parent 8e21f5fc72
commit 51416b7d39
3 changed files with 15 additions and 18 deletions

View File

@@ -15,22 +15,22 @@ const wo = (global.wo = {
['webSsl', '--webSsl <string>', 'SSL options in JSON string.'],
],
// 最基础的必须的默认配置,如果用户什么也没有提供
webProtocol: process.env.NODE_ENV !== 'production' ? 'http' : 'httpall',
webHostname: process.env.NODE_ENV !== 'production' ? 'localhost' : 'unknownhost',
webPort: process.env.NODE_ENV !== 'production' ? coretool.PORT_WEB_SERVER_DEV : undefined,
webRoot: process.env.NODE_ENV !== 'production' ? 'unpackage/dist/build/h5' : '_webroot', // local path to serve as webroot
webProtocol: process.env.NODE_ENV === 'production' ? 'httpall' : 'http',
webHostname: process.env.NODE_ENV === 'production' ? 'unknownhost' : 'localhost',
webPort: process.env.NODE_ENV === 'production' ? coretool.PORT_WEB_SERVER_DEV : undefined,
webRoot: process.env.NODE_ENV === 'production' ? '_webroot' : '_webroot', // local path to serve as webroot. 'unpackage/dist/build/h5'
webIndex: 'index.html',
webSsl:
process.env.NODE_ENV !== 'production'
? undefined
: {
process.env.NODE_ENV === 'production'
? {
type: 'file', // greenlock or file
file: {
key: './ssl/privkey.pem', // ssl key file,
cert: './ssl/fullchain.pem', // ssl cert file,
ca: './ssl/chain.pem', // ssl ca file,
},
},
}
: undefined,
// 如果使用虚拟主机
/*
vhosts: [