swico 1.1.0 → 1.2.0-beta.1

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # SWICO介绍
2
2
 
3
- Swico,发音类似于“斯威扣”。
3
+ Swico,发音近似于“斯威扣”。
4
4
 
5
5
  为个人独立开发的一款实用的前端框架,它基于前端工程化最新技术栈实现了前端开发从创建项目,获取模板,本地开发,Git提交校验到打包构建的完整过程。
6
6
 
@@ -18,4 +18,4 @@ Swico,发音类似于“斯威扣”。
18
18
  - 提供配置文件可对部分项目配置进行修改扩展,例如Alias映射,本地请求代理等。
19
19
 
20
20
 
21
- 详见:[SWICO 官方文档](https://scw1997.github.io/swico-docs)
21
+ 官方文档:[SWICO 官方文档](https://scw1997.github.io/swico-docs)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swico",
3
- "version": "1.1.0",
3
+ "version": "1.2.0-beta.1",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",
28
- "url": "https://gitee.com/fanlaBoy/swico.git"
28
+ "url": "https://github.com/scw1997/swico.git"
29
29
  },
30
30
  "author": "scw",
31
31
  "license": "ISC",
@@ -103,6 +103,7 @@ var handleWatch = function (projectPath, devServer) {
103
103
  return __generator(this, function (_a) {
104
104
  switch (_a.label) {
105
105
  case 0:
106
+ console.log('eventName', eventName);
106
107
  if (!['add', 'unlink'].includes(eventName)) return [3, 3];
107
108
  return [4, devServer.stop()];
108
109
  case 1:
@@ -256,14 +256,14 @@ function default_1(_a) {
256
256
  test: /\.(jpg|png|gif|webp|bmp|jpeg|svg)$/,
257
257
  type: 'asset',
258
258
  generator: {
259
- filename: 'images/[name]_[hash][ext]'
259
+ filename: 'images/[name]_[contenthash][ext]'
260
260
  }
261
261
  },
262
262
  {
263
263
  test: /\.(otf|eot|woff2?|ttf)$/i,
264
264
  type: 'asset',
265
265
  generator: {
266
- filename: 'fonts/[name]_[hash][ext]'
266
+ filename: 'fonts/[name]_[contenthash][ext]'
267
267
  }
268
268
  },
269
269
  {
@@ -273,14 +273,14 @@ function default_1(_a) {
273
273
  test: /\.(jpg|png|gif|webp|bmp|jpeg|svg)$/,
274
274
  type: 'asset',
275
275
  generator: {
276
- filename: 'images/[name]_[hash][ext]'
276
+ filename: 'images/[name]_[contenthash][ext]'
277
277
  }
278
278
  },
279
279
  {
280
280
  test: /\.(otf|eot|woff2?|ttf)$/i,
281
281
  type: 'asset',
282
282
  generator: {
283
- filename: 'fonts/[name]_[hash][ext]'
283
+ filename: 'fonts/[name]_[contenthash][ext]'
284
284
  }
285
285
  },
286
286
  {
@@ -126,7 +126,7 @@ function default_1(options) {
126
126
  assetsSort: '!size',
127
127
  chunksSort: '!size'
128
128
  },
129
- devtool: customDevtool !== null && customDevtool !== void 0 ? customDevtool : 'nosources-source-map',
129
+ devtool: customDevtool !== null && customDevtool !== void 0 ? customDevtool : 'none',
130
130
  optimization: {
131
131
  runtimeChunk: true,
132
132
  minimize: true,