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.
- package/build/package.json +1 -2
- package/build/webpack.config.js +4 -2
- package/package.json +1 -1
- package/readme.md +8 -1
package/build/package.json
CHANGED
package/build/webpack.config.js
CHANGED
|
@@ -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: [
|
|
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
package/readme.md
CHANGED
|
@@ -17,7 +17,14 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
# 更新日志
|
|
20
|
-
|
|
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
|
|