@dmqweb/elpis 1.0.0 → 1.0.2

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.
@@ -162,8 +162,8 @@ module.exports = merge.smart({
162
162
  console.log('%cdmq:::%s',`color:green;font-weight:bold;`,`哈哈哈哈`,businessSearchItemConfig,fs.existsSync(businessSearchItemConfig));
163
163
 
164
164
  return {
165
- // 外部pages的vue引用vue时(由elpis的boot.js使用)需要修改引用到内部的vue
166
- "vue": path.resolve(__dirname,"../../../node_modules/vue"),
165
+ // 外部pages的vue引用vue时(由elpis的boot.js使用)需要修改引用到内部的vue(!!!但实际用包时,修改后反而报错)
166
+ // "vue": path.resolve("vue"),
167
167
  $elpisPage: path.resolve(__dirname, '../../pages'),
168
168
  $elpisCommon: path.resolve(__dirname, '../../pages/common'),
169
169
  $elpisCurl: path.resolve(__dirname, '../../pages/common/curl.js'),
@@ -134,7 +134,7 @@ const webpackProdConfig = merge(baseConfig, {
134
134
  minimizer: [
135
135
  new TerserWebpackPlugin({
136
136
  parallel: true, // 启用缓存来加速构建过程
137
- cache: true, // 利用多核 CPU 的优势来提升构建速度
137
+ // cache: true, // 利用多核 CPU 的优势来提升构建速度,webpack 5内置了、不再需要
138
138
  terserOptions: {
139
139
  compress: {
140
140
  drop_console: true, // 删除所有 console.* 语句
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmqweb/elpis",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -63,7 +63,7 @@
63
63
  "less-loader": "^11.1.3",
64
64
  "mini-css-extract-plugin": "^2.7.6",
65
65
  "style-loader": "^0.14.1",
66
- "terser-webpack-plugin": "^2.3.5",
66
+ "terser-webpack-plugin": "^5.3.9",
67
67
  "url-loader": "^4.1.1",
68
68
  "vue-eslint-parser": "^10.2.0",
69
69
  "vue-loader": "^17.2.2",