소스 검색

:art: fix https://github.com/Vanessa219/vditor/issues/1153

Vanessa 3 년 전
부모
커밋
efbbd5e2b9
3개의 변경된 파일415개의 추가작업 그리고 262개의 파일을 삭제
  1. 396 243
      package-lock.json
  2. 4 4
      package.json
  3. 15 15
      webpack.config.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 396 - 243
package-lock.json


+ 4 - 4
package.json

@@ -24,7 +24,7 @@
     "@types/diff-match-patch": "^1.0.32",
     "@types/jest": "^26.0.23",
     "@types/puppeteer": "^2.1.5",
-    "autoprefixer": "^9.8.6",
+    "autoprefixer": "^10.4.2",
     "babel-loader": "^8.2.2",
     "clean-webpack-plugin": "^4.0.0-alpha.0",
     "copy-webpack-plugin": "^6.4.1",
@@ -39,14 +39,14 @@
     "puppeteer": "^1.20.0",
     "sass-loader": "^12.4.0",
     "style-loader": "^1.3.0",
-    "terser-webpack-plugin": "^5.1.2",
+    "terser-webpack-plugin": "^5.3.0",
     "ts-jest": "^26.5.6",
     "ts-loader": "^6.2.2",
     "tslint": "^5.20.1",
     "typescript": "^3.9.9",
-    "webpack": "^5.37.0",
+    "webpack": "^5.66.0",
     "webpack-bundle-analyzer": "^3.9.0",
-    "webpack-cli": "^4.7.0",
+    "webpack-cli": "^4.9.1",
     "webpack-dev-server": "^4.1.0"
   },
   "license": "MIT",

+ 15 - 15
webpack.config.js

@@ -59,6 +59,20 @@ module.exports = [
       'index.min': './src/index.ts',
       'method.min': './src/method.ts',
     },
+    optimization: {
+      minimize: true,
+      minimizer: [
+        new TerserPlugin({
+          include: ['index.min.js', 'method.min.js'],
+          terserOptions: {
+            format: {
+              comments: false,
+            },
+          },
+          extractComments: false,
+        }),
+      ],
+    },
     resolve: {
       extensions: ['.ts', '.js', '.scss', 'png'],
     },
@@ -147,22 +161,8 @@ module.exports = [
           {from: 'src/css', to: 'css'},
           {from: 'src/images', to: 'images'},
           {from: 'src/js', to: 'js'},
-          {from: 'types', to: 'types'}
+          {from: 'types', to: 'types'},
         ],
       }),
     ],
-    optimization: {
-      minimize: true,
-      minimizer: [
-        new TerserPlugin({
-          include: /\/src\/ts/,
-          terserOptions: {
-            format: {
-              comments: false,
-            },
-          },
-          extractComments: false,
-        }),
-      ],
-    },
   }]

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.