swico 1.2.0-beta.1 → 1.2.0-beta.3

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.2.0-beta.1",
3
+ "version": "1.2.0-beta.3",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -89,11 +89,7 @@ var handleWatch = function (projectPath, devServer) {
89
89
  }); });
90
90
  var tsTypingsWatcher = chokidar_1.default
91
91
  .watch([
92
- path_1.default.join(projectPath, '/src/**/*.d.ts'),
93
- path_1.default.join(projectPath, '/src/loading/index.tsx'),
94
- path_1.default.join(projectPath, '/src/global.css'),
95
- path_1.default.join(projectPath, '/src/global.less'),
96
- path_1.default.join(projectPath, '/src/global.scss')
92
+ path_1.default.join(projectPath, '/src/**/*')
97
93
  ], {
98
94
  interval: 500,
99
95
  binaryInterval: 500,
@@ -103,7 +99,7 @@ var handleWatch = function (projectPath, devServer) {
103
99
  return __generator(this, function (_a) {
104
100
  switch (_a.label) {
105
101
  case 0:
106
- console.log('eventName', eventName);
102
+ console.log('eventName', eventName, path);
107
103
  if (!['add', 'unlink'].includes(eventName)) return [3, 3];
108
104
  return [4, devServer.stop()];
109
105
  case 1:
@@ -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 : 'none',
129
+ devtool: customDevtool !== null && customDevtool !== void 0 ? customDevtool : undefined,
130
130
  optimization: {
131
131
  runtimeChunk: true,
132
132
  minimize: true,