正在显示
4 个修改的文件
包含
59 行增加
和
51 行删除
| ... | @@ -81,7 +81,7 @@ let rendererConfig = { | ... | @@ -81,7 +81,7 @@ let rendererConfig = { |
| 81 | }, | 81 | }, |
| 82 | { | 82 | { |
| 83 | test: /\.vue$/, | 83 | test: /\.vue$/, |
| 84 | - use: [ { | 84 | + use: [{ |
| 85 | loader: 'vue-loader', | 85 | loader: 'vue-loader', |
| 86 | options: { | 86 | options: { |
| 87 | cacheDirectory: 'node_modules/.cache/vue-loader', | 87 | cacheDirectory: 'node_modules/.cache/vue-loader', |
| ... | @@ -219,13 +219,17 @@ if (process.env.NODE_ENV === 'production') { | ... | @@ -219,13 +219,17 @@ if (process.env.NODE_ENV === 'production') { |
| 219 | 219 | ||
| 220 | rendererConfig.plugins.push( | 220 | rendererConfig.plugins.push( |
| 221 | new MinifyPlugin(), | 221 | new MinifyPlugin(), |
| 222 | - new CopyWebpackPlugin([ | 222 | + new CopyWebpackPlugin({ |
| 223 | - { | 223 | + patterns: [ |
| 224 | - from: path.join(__dirname, '../static'), | 224 | + { |
| 225 | - to: path.join(__dirname, '../dist/electron/static'), | 225 | + from: path.join(__dirname, '../static'), |
| 226 | - ignore: ['.*'] | 226 | + to: path.join(__dirname, '../dist/electron/static'), |
| 227 | - } | 227 | + globOptions: { |
| 228 | - ]), | 228 | + ignore: ['.*'] |
| 229 | + } | ||
| 230 | + } | ||
| 231 | + ] | ||
| 232 | + }), | ||
| 229 | new webpack.DefinePlugin({ | 233 | new webpack.DefinePlugin({ |
| 230 | 'process.env.NODE_ENV': '"production"' | 234 | 'process.env.NODE_ENV': '"production"' |
| 231 | }), | 235 | }), | ... | ... |
| ... | @@ -148,13 +148,17 @@ if (process.env.NODE_ENV === 'production') { | ... | @@ -148,13 +148,17 @@ if (process.env.NODE_ENV === 'production') { |
| 148 | 148 | ||
| 149 | webConfig.plugins.push( | 149 | webConfig.plugins.push( |
| 150 | new MinifyPlugin(), | 150 | new MinifyPlugin(), |
| 151 | - new CopyWebpackPlugin([ | 151 | + new CopyWebpackPlugin({ |
| 152 | - { | 152 | + patterns: [ |
| 153 | - from: path.join(__dirname, '../static'), | 153 | + { |
| 154 | - to: path.join(__dirname, '../dist/web/static'), | 154 | + from: path.join(__dirname, '../static'), |
| 155 | - ignore: ['.*'] | 155 | + to: path.join(__dirname, '../dist/electron/static'), |
| 156 | - } | 156 | + globOptions: { |
| 157 | - ]), | 157 | + ignore: ['.*'] |
| 158 | + } | ||
| 159 | + } | ||
| 160 | + ] | ||
| 161 | + }), | ||
| 158 | new webpack.DefinePlugin({ | 162 | new webpack.DefinePlugin({ |
| 159 | 'process.env.NODE_ENV': '"production"' | 163 | 'process.env.NODE_ENV': '"production"' |
| 160 | }), | 164 | }), |
| ... | @@ -202,7 +206,7 @@ if (process.env.NODE_ENV === 'production') { | ... | @@ -202,7 +206,7 @@ if (process.env.NODE_ENV === 'production') { |
| 202 | }, | 206 | }, |
| 203 | output: { | 207 | output: { |
| 204 | comments: false, | 208 | comments: false, |
| 205 | - }, | 209 | + }, |
| 206 | } | 210 | } |
| 207 | })] | 211 | })] |
| 208 | } | 212 | } | ... | ... |
此文件的差异太大,无法显示。
| ... | @@ -81,51 +81,51 @@ | ... | @@ -81,51 +81,51 @@ |
| 81 | "nprogress": "^0.2.0", | 81 | "nprogress": "^0.2.0", |
| 82 | "vue": "^2.6.11", | 82 | "vue": "^2.6.11", |
| 83 | "vue-router": "^3.3.4", | 83 | "vue-router": "^3.3.4", |
| 84 | - "vuex": "^3.4.0" | 84 | + "vuex": "^3.5.1" |
| 85 | }, | 85 | }, |
| 86 | "devDependencies": { | 86 | "devDependencies": { |
| 87 | - "@babel/core": "^7.10.2", | 87 | + "@babel/core": "^7.10.4", |
| 88 | - "@babel/plugin-proposal-class-properties": "^7.10.1", | 88 | + "@babel/plugin-proposal-class-properties": "^7.10.4", |
| 89 | - "@babel/plugin-proposal-decorators": "^7.10.1", | 89 | + "@babel/plugin-proposal-decorators": "^7.10.4", |
| 90 | - "@babel/plugin-proposal-do-expressions": "^7.10.1", | 90 | + "@babel/plugin-proposal-do-expressions": "^7.10.4", |
| 91 | - "@babel/plugin-proposal-export-default-from": "^7.10.1", | 91 | + "@babel/plugin-proposal-export-default-from": "^7.10.4", |
| 92 | - "@babel/plugin-proposal-export-namespace-from": "^7.10.1", | 92 | + "@babel/plugin-proposal-export-namespace-from": "^7.10.4", |
| 93 | - "@babel/plugin-proposal-function-bind": "^7.10.1", | 93 | + "@babel/plugin-proposal-function-bind": "^7.10.4", |
| 94 | - "@babel/plugin-proposal-function-sent": "^7.10.1", | 94 | + "@babel/plugin-proposal-function-sent": "^7.10.4", |
| 95 | - "@babel/plugin-proposal-json-strings": "^7.10.1", | 95 | + "@babel/plugin-proposal-json-strings": "^7.10.4", |
| 96 | - "@babel/plugin-proposal-logical-assignment-operators": "^7.10.1", | 96 | + "@babel/plugin-proposal-logical-assignment-operators": "^7.10.4", |
| 97 | - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.1", | 97 | + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4", |
| 98 | - "@babel/plugin-proposal-numeric-separator": "^7.10.1", | 98 | + "@babel/plugin-proposal-numeric-separator": "^7.10.4", |
| 99 | - "@babel/plugin-proposal-optional-chaining": "^7.10.1", | 99 | + "@babel/plugin-proposal-optional-chaining": "^7.10.4", |
| 100 | - "@babel/plugin-proposal-pipeline-operator": "^7.10.1", | 100 | + "@babel/plugin-proposal-pipeline-operator": "^7.10.4", |
| 101 | - "@babel/plugin-proposal-throw-expressions": "^7.10.1", | 101 | + "@babel/plugin-proposal-throw-expressions": "^7.10.4", |
| 102 | "@babel/plugin-syntax-dynamic-import": "^7.8.3", | 102 | "@babel/plugin-syntax-dynamic-import": "^7.8.3", |
| 103 | - "@babel/plugin-syntax-import-meta": "^7.10.1", | 103 | + "@babel/plugin-syntax-import-meta": "^7.10.4", |
| 104 | - "@babel/plugin-transform-runtime": "^7.10.1", | 104 | + "@babel/plugin-transform-runtime": "^7.10.4", |
| 105 | - "@babel/polyfill": "^7.10.1", | 105 | + "@babel/polyfill": "^7.10.4", |
| 106 | - "@babel/preset-env": "^7.10.2", | 106 | + "@babel/preset-env": "^7.10.4", |
| 107 | - "@babel/register": "^7.10.1", | 107 | + "@babel/register": "^7.10.4", |
| 108 | - "@babel/runtime": "^7.10.2", | 108 | + "@babel/runtime": "^7.10.4", |
| 109 | - "ajv": "^6.12.2", | 109 | + "ajv": "^6.12.3", |
| 110 | "babel-eslint": "^9.0.0", | 110 | "babel-eslint": "^9.0.0", |
| 111 | "babel-loader": "^8.1.0", | 111 | "babel-loader": "^8.1.0", |
| 112 | "babel-minify-webpack-plugin": "^0.3.1", | 112 | "babel-minify-webpack-plugin": "^0.3.1", |
| 113 | "cache-loader": "^4.1.0", | 113 | "cache-loader": "^4.1.0", |
| 114 | "cfonts": "^2.8.4", | 114 | "cfonts": "^2.8.4", |
| 115 | "chalk": "^4.1.0", | 115 | "chalk": "^4.1.0", |
| 116 | - "copy-webpack-plugin": "^5.1.1", | 116 | + "copy-webpack-plugin": "^6.0.3", |
| 117 | "cross-env": "^7.0.2", | 117 | "cross-env": "^7.0.2", |
| 118 | "css-loader": "^3.6.0", | 118 | "css-loader": "^3.6.0", |
| 119 | "del": "^5.1.0", | 119 | "del": "^5.1.0", |
| 120 | - "electron": "^8.3.3", | 120 | + "electron": "^8.3.4", |
| 121 | "electron-builder": "^22.7.0", | 121 | "electron-builder": "^22.7.0", |
| 122 | - "electron-devtools-installer": "^3.0.0", | 122 | + "electron-devtools-installer": "^3.1.0", |
| 123 | "eslint": "^6.8.0", | 123 | "eslint": "^6.8.0", |
| 124 | "eslint-config-standard": "^14.1.1", | 124 | "eslint-config-standard": "^14.1.1", |
| 125 | "eslint-friendly-formatter": "^4.0.1", | 125 | "eslint-friendly-formatter": "^4.0.1", |
| 126 | "eslint-loader": "^3.0.4", | 126 | "eslint-loader": "^3.0.4", |
| 127 | "eslint-plugin-html": "^6.0.2", | 127 | "eslint-plugin-html": "^6.0.2", |
| 128 | - "eslint-plugin-import": "^2.21.2", | 128 | + "eslint-plugin-import": "^2.22.0", |
| 129 | "eslint-plugin-node": "^9.2.0", | 129 | "eslint-plugin-node": "^9.2.0", |
| 130 | "eslint-plugin-promise": "^4.2.1", | 130 | "eslint-plugin-promise": "^4.2.1", |
| 131 | "eslint-plugin-standard": "^4.0.0", | 131 | "eslint-plugin-standard": "^4.0.0", |
| ... | @@ -135,24 +135,24 @@ | ... | @@ -135,24 +135,24 @@ |
| 135 | "html-webpack-plugin": "^3.2.0", | 135 | "html-webpack-plugin": "^3.2.0", |
| 136 | "mini-css-extract-plugin": "0.9.0", | 136 | "mini-css-extract-plugin": "0.9.0", |
| 137 | "multispinner": "^0.2.1", | 137 | "multispinner": "^0.2.1", |
| 138 | - "node-loader": "^0.6.0", | 138 | + "node-loader": "^1.0.0", |
| 139 | "portfinder": "^1.0.26", | 139 | "portfinder": "^1.0.26", |
| 140 | - "sass": "^1.26.8", | 140 | + "sass": "^1.26.10", |
| 141 | - "sass-loader": "^8.0.2", | 141 | + "sass-loader": "^9.0.1", |
| 142 | "split2": "^3.1.1", | 142 | "split2": "^3.1.1", |
| 143 | "style-loader": "^1.2.1", | 143 | "style-loader": "^1.2.1", |
| 144 | - "svg-sprite-loader": "^4.3.0", | 144 | + "svg-sprite-loader": "^5.0.0", |
| 145 | - "terser-webpack-plugin": "^3.0.5", | 145 | + "terser-webpack-plugin": "^3.0.6", |
| 146 | "through2-filter": "^3.0.0", | 146 | "through2-filter": "^3.0.0", |
| 147 | "url-loader": "^4.1.0", | 147 | "url-loader": "^4.1.0", |
| 148 | "vue-html-loader": "^1.2.4", | 148 | "vue-html-loader": "^1.2.4", |
| 149 | - "vue-loader": "^15.9.2", | 149 | + "vue-loader": "^15.9.3", |
| 150 | "vue-style-loader": "^4.1.2", | 150 | "vue-style-loader": "^4.1.2", |
| 151 | "vue-template-compiler": "^2.6.11", | 151 | "vue-template-compiler": "^2.6.11", |
| 152 | "webpack": "^4.43.0", | 152 | "webpack": "^4.43.0", |
| 153 | - "webpack-cli": "^3.3.11", | 153 | + "webpack-cli": "^3.3.12", |
| 154 | "webpack-dev-server": "^3.11.0", | 154 | "webpack-dev-server": "^3.11.0", |
| 155 | "webpack-hot-middleware": "^2.25.0", | 155 | "webpack-hot-middleware": "^2.25.0", |
| 156 | - "webpack-merge": "^4.2.2" | 156 | + "webpack-merge": "^5.0.7" |
| 157 | } | 157 | } |
| 158 | } | 158 | } | ... | ... |
-
请 注册 或 登录 后发表评论