swico 1.1.1 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swico",
3
- "version": "1.1.1",
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",
@@ -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,