@codelet/cli-service 0.0.6 → 0.0.8
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/dist/config.js +8 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +7 -6
package/dist/config.js
CHANGED
|
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getDefaultConfig = void 0;
|
|
7
|
-
const
|
|
8
|
-
const mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
|
|
7
|
+
const app_json_webpack_plugin_1 = __importDefault(require("@codelet/app-json-webpack-plugin"));
|
|
9
8
|
const hmr_webpack_plugin_1 = __importDefault(require("@codelet/hmr-webpack-plugin"));
|
|
10
9
|
const inject_chunk_webpack_plugin_1 = __importDefault(require("@codelet/inject-chunk-webpack-plugin"));
|
|
11
|
-
const
|
|
10
|
+
const mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
|
|
12
11
|
const terser_webpack_plugin_1 = __importDefault(require("terser-webpack-plugin"));
|
|
12
|
+
const webpackbar_1 = __importDefault(require("webpackbar"));
|
|
13
13
|
const utils_1 = require("./utils");
|
|
14
14
|
function getDefaultConfig(options) {
|
|
15
15
|
const { entryPath, source, pageIndex, isDev } = Object.assign({
|
|
@@ -56,6 +56,11 @@ function getDefaultConfig(options) {
|
|
|
56
56
|
new terser_webpack_plugin_1.default({
|
|
57
57
|
// 不生成 license 文件
|
|
58
58
|
extractComments: false,
|
|
59
|
+
terserOptions: {
|
|
60
|
+
format: {
|
|
61
|
+
comments: false, // 删除注释
|
|
62
|
+
},
|
|
63
|
+
},
|
|
59
64
|
}),
|
|
60
65
|
];
|
|
61
66
|
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./defineConfig"), exports);
|
|
18
17
|
__exportStar(require("./config"), exports);
|
|
18
|
+
__exportStar(require("./defineConfig"), exports);
|
package/dist/utils.js
CHANGED
|
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getConfig = exports.parseArgv = exports.getOptionValue = exports.parseDir = exports.resolve = exports.cmd = void 0;
|
|
7
|
-
const path_1 = __importDefault(require("path"));
|
|
8
7
|
const fast_glob_1 = __importDefault(require("fast-glob"));
|
|
9
8
|
const fs_1 = __importDefault(require("fs"));
|
|
9
|
+
const path_1 = __importDefault(require("path"));
|
|
10
10
|
const webpack_merge_1 = __importDefault(require("webpack-merge"));
|
|
11
11
|
const config_1 = require("./config");
|
|
12
12
|
exports.cmd = process.cwd();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codelet/cli-service",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "cli-service",
|
|
5
5
|
"bin": {
|
|
6
6
|
"codelet-cli-service": "./bin/codelet-cli-service.js"
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"mini"
|
|
25
25
|
],
|
|
26
26
|
"author": "woshiajuana",
|
|
27
|
+
"homepage": "https://github.com/Woshiajuana/codelet#readme",
|
|
27
28
|
"license": "MIT",
|
|
28
29
|
"dependencies": {
|
|
29
30
|
"@babel/core": "^7.23.7",
|
|
@@ -39,11 +40,11 @@
|
|
|
39
40
|
"webpack": "^5.89.0",
|
|
40
41
|
"webpack-merge": "^5.10.0",
|
|
41
42
|
"webpackbar": "^6.0.0",
|
|
42
|
-
"@codelet/
|
|
43
|
-
"@codelet/inject-chunk-webpack-plugin": "^0.0.
|
|
44
|
-
"@codelet/
|
|
45
|
-
"@codelet/copy-loader": "^0.0.
|
|
46
|
-
"@codelet/wxml-loader": "^0.0.
|
|
43
|
+
"@codelet/app-json-webpack-plugin": "^0.0.7",
|
|
44
|
+
"@codelet/inject-chunk-webpack-plugin": "^0.0.7",
|
|
45
|
+
"@codelet/hmr-webpack-plugin": "^0.0.2",
|
|
46
|
+
"@codelet/copy-loader": "^0.0.7",
|
|
47
|
+
"@codelet/wxml-loader": "^0.0.7"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"rimraf": "^5.0.5"
|