kn-cli 1.0.11 → 1.0.12

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.
@@ -55,8 +55,7 @@
55
55
  "webpack": "~4.42.0",
56
56
  "webpack-bundle-analyzer": "~3.6.1",
57
57
  "webpack-cli": "~3.3.11",
58
- "webpack-dev-server": "~3.10.3",
59
- "webpack-visualizer-plugin": "~0.1.11"
58
+ "webpack-dev-server": "~3.10.3"
60
59
  },
61
60
  "engines": {
62
61
  "node": "16.18.0"
@@ -42,7 +42,9 @@ console.log(`webpackPath:${webpackPath}`);
42
42
  console.log(`build_env:${process.env.build_env}`);
43
43
  console.log(`mock:${process.env.mock}`);
44
44
  console.log(`noSkipNpmInstall:${process.env.noSkipNpmInstall}`);
45
+ console.log(path.resolve(dirname,'node_modules'));
45
46
  console.log(`=====================env end=========================`);
47
+
46
48
  const devMode = process.env.build_env !== 'prod';
47
49
  const hashMode = process.env.build_env != 'localdebug';
48
50
 
@@ -103,7 +105,7 @@ module.exports = {
103
105
  publicPath: resource_path_relative,
104
106
  },
105
107
  resolve: {
106
- modules: ['node_modules', path.resolve(webpackPath, 'node_modules'), path.join(dirname, 'src')],
108
+ modules: [path.resolve(dirname,'node_modules/'),path.resolve(webpackPath, 'node_modules')],
107
109
  extensions: ['.jsx', '.js', '.json'],
108
110
  alias: {
109
111
  '@': path.resolve(dirname, 'src/'),
@@ -332,7 +334,7 @@ module.exports = {
332
334
  }),
333
335
  new webpack.SourceMapDevToolPlugin({
334
336
  filename: 'sourcemap/[file].map',
335
- // publicPath: resource_path_relative,
337
+ // publicPath: '..',//resource_path_relative,
336
338
  // fileContext: 'js',
337
339
  })
338
340
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kn-cli",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/readme.md CHANGED
@@ -17,7 +17,14 @@
17
17
 
18
18
 
19
19
  # 更新日志
20
- * 1.0.10
20
+
21
+ * 1.0.12
22
+ 1. 去除 webpack-visualizer-plugin
23
+ 2. 对打包时resolve.modules寻找node_modules的路径优先级进行调整
24
+ 3. 对打包、调试过程中控制台的输出优化,避免无效信息
25
+
26
+
27
+ * 1.0.11
21
28
  1. 增加 `kn-cli --report`对包的模块化进行报告输出
22
29
  2. 对 `statics`和`pluginjs`文件夹不存在或内部没有文件的情况下会编译报错进行了修复,现在不会再导致编译失败了
23
30