@jayfong/x-server 1.10.3 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/lib/cli/build_util.d.ts +1 -0
- package/lib/cli/build_util.js +1 -1
- package/lib/cli/cli.js +6 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.11.0](https://github.com/jfWorks/x-server/compare/v1.10.3...v1.11.0) (2022-04-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* minify & sideEffects ([12cdccd](https://github.com/jfWorks/x-server/commit/12cdccdd23273117e610a1f428f33b735f6b199b))
|
|
11
|
+
|
|
5
12
|
### [1.10.3](https://github.com/jfWorks/x-server/compare/v1.10.2...v1.10.3) (2022-04-19)
|
|
6
13
|
|
|
7
14
|
|
package/lib/cli/build_util.d.ts
CHANGED
package/lib/cli/build_util.js
CHANGED
package/lib/cli/cli.js
CHANGED
|
@@ -88,6 +88,11 @@ yargs_1.default
|
|
|
88
88
|
describe: '不应该被打的包',
|
|
89
89
|
type: 'string',
|
|
90
90
|
array: true,
|
|
91
|
+
}).positional('minify', {
|
|
92
|
+
alias: 'm',
|
|
93
|
+
describe: '是否压缩',
|
|
94
|
+
type: 'boolean',
|
|
95
|
+
default: true,
|
|
91
96
|
}), async (argv) => {
|
|
92
97
|
process.env.NODE_ENV = 'production';
|
|
93
98
|
const envs = await env_util_1.EnvUtil.parseFile({
|
|
@@ -112,6 +117,7 @@ yargs_1.default
|
|
|
112
117
|
cwd: process.cwd(),
|
|
113
118
|
external: argv.external,
|
|
114
119
|
inlineEnvs: envs,
|
|
120
|
+
minify: argv.minify,
|
|
115
121
|
});
|
|
116
122
|
console.log('构建成功');
|
|
117
123
|
})
|