Commit 5ed86522 authored by guxukai's avatar guxukai

chore: 我的控制台

parent c90097e6
.DS_Store .DS_Store
node_modules node_modules
/dist /dist
src/assets/font src/assets/font/font.*
tailwind.css tailwind.css
auto-imports.d.ts auto-imports.d.ts
# local env files # local env files
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"serve": "vue-cli-service serve --mode dev", "serve": "vue-cli-service serve --mode dev",
"build": "vue-cli-service build --mode prod", "build": "vue-cli-service build --mode prod",
"lint": "vue-cli-service lint", "lint": "vue-cli-service lint",
"font": " icon-font-generator src/assets/icons/svg/*.svg -o src/assets/font --name font --prefix font",
"tailwind": "npx tailwindcss -i src/assets/css/tailwind.css -o ./tailwind.css --watch", "tailwind": "npx tailwindcss -i src/assets/css/tailwind.css -o ./tailwind.css --watch",
"prepare": "husky install" "prepare": "husky install"
}, },
...@@ -53,6 +54,7 @@ ...@@ -53,6 +54,7 @@
"eslint-plugin-prettier": "^3.3.1", "eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue": "^7.0.0", "eslint-plugin-vue": "^7.0.0",
"husky": "^7.0.0", "husky": "^7.0.0",
"icon-font-generator": "^2.1.11",
"image-webpack-loader": "^8.0.1", "image-webpack-loader": "^8.0.1",
"lint-staged": "^12.1.2", "lint-staged": "^12.1.2",
"lodash-webpack-plugin": "^0.11.6", "lodash-webpack-plugin": "^0.11.6",
...@@ -69,12 +71,12 @@ ...@@ -69,12 +71,12 @@
"sass": "^1.45.0", "sass": "^1.45.0",
"sass-loader": "^12.4.0", "sass-loader": "^12.4.0",
"svg-sprite-loader": "^6.0.11", "svg-sprite-loader": "^6.0.11",
"svgtofont": "^3.13.1",
"typescript": "^4.5.4", "typescript": "^4.5.4",
"typescript-json-serializer": "^3.4.4", "typescript-json-serializer": "^3.4.4",
"unplugin-auto-import": "^0.5.5", "unplugin-auto-import": "^0.5.5",
"unplugin-vue-components": "^0.17.11", "unplugin-vue-components": "^0.17.11",
"webpack-bundle-analyzer": "^4.5.0" "webpack-bundle-analyzer": "^4.5.0",
"webpack-shell-plugin-next": "^2.2.2"
}, },
"engines": { "engines": {
"node": ">=14" "node": ">=14"
......
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M16.52107,8.86833649 C16.52107,11.0003454 14.7927519,12.7286306 12.6607759,12.7286306 C10.5287999,12.7286306 8.80048176,11.0003454 8.80048176,8.86833649 C8.80048176,6.73639179 10.5287999,5.00804238 12.6607759,5.00804238 C14.7927519,5.00804238 16.52107,6.73639179 16.52107,8.86833649 Z M15.8469996,12.910708 C14.9472938,13.6211306 13.8321509,14.0153953 12.6607775,14.0153953 C11.4758274,14.0153953 10.3497811,13.6118988 9.44598882,12.8878353 C7.06373565,13.7620629 6.00000082,16.8181937 6.00000082,18.213465 L19.2536773,18.213465 C19.2536773,16.8301925 18.1817368,13.7958737 15.8469996,12.910708 Z"></path>
</svg>
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M10.5854611,18.8723291 C11.0022801,19.1224292 11.335747,18.9557104 11.335747,18.4555101 L11.335747,12.619957 C11.335747,12.1197567 11.0022801,11.619571 10.5854611,11.3694708 L5.75027931,8.36832754 C5.33346037,8.2015941 4.99999349,8.36832754 4.99999349,8.78516113 L4.99999349,14.6207143 C4.99999349,15.1208999 5.33346037,15.6211003 5.75027931,15.8711858 L10.5854611,18.8723291 L10.5854611,18.8723291 Z M6.50056513,6.53430367 C6.08374619,6.78438917 6.08374619,7.11785605 6.50056513,7.36795621 L11.2523802,10.3690995 C11.6692138,10.619185 12.2527662,10.619185 12.6695852,10.4524516 L17.4214149,8.03487531 C17.8382339,7.78477515 17.8382339,7.45130827 17.4214149,7.20120811 L12.4195143,4.20006482 C12.0860474,3.94997932 11.4191283,3.94997932 11.0022947,4.20006482 L6.50057979,6.53430367 L6.50056513,6.53430367 Z M12.6695852,18.4554955 C12.6695852,18.9556958 13.003052,19.1224292 13.419871,18.8723291 L18.1717007,16.4547382 C18.5885197,16.2046526 18.9219866,15.7044523 18.9219866,15.2042667 L18.9219866,9.36872817 C18.9219866,8.86854251 18.5885197,8.70180907 18.1717007,8.95189457 L13.419871,11.3694708 C13.003052,11.619571 12.6695852,12.1197567 12.6695852,12.619957 L12.6695852,18.4555101 L12.6695852,18.4554955 Z"></path>
</svg>
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M16.3715117,18.8986667 C15.233914,18.8967465 14.2325264,18.1481962 13.9086783,17.0576667 L10.031845,17.0576667 C9.70845258,18.1480146 8.70747212,18.8966152 7.57017834,18.8986667 C6.88677747,18.8971216 6.23199817,18.624079 5.74996449,18.1396384 C5.26793081,17.6551979 4.99815284,16.9990667 5.00000212,16.3156667 C5.00000212,14.89 6.14917834,13.735 7.57017834,13.735 C7.79767834,13.735 8.026345,13.7676667 8.24567834,13.8283333 L10.1730117,10.4286667 C9.67720132,9.94267726 9.39833636,9.27727099 9.39951166,8.583 C9.39951166,7.15616666 10.5510117,6 11.970845,6 C13.3906783,6 14.543345,7.155 14.543345,8.58183334 C14.543345,9.227 14.3030117,9.8465 13.8666783,10.3225 L15.859345,13.7875 C16.6177185,13.6348112 17.4045695,13.830867 18.0026411,14.3215344 C18.6007127,14.8122019 18.9467388,15.5455765 18.9451836,16.3191667 C18.9458244,17.7411315 17.794641,18.8949253 16.3726783,18.8975 L16.3715117,18.8986667 Z M12.6066783,11.082 C12.2392016,11.1781634 11.8547568,11.1901274 11.4820117,11.117 L9.49867834,14.6146667 C9.74601168,14.8958333 9.930345,15.2283333 10.035345,15.5876667 L13.906345,15.5876667 C14.0288207,15.170585 14.2543022,14.7910379 14.5620117,14.484 L12.6066783,11.082 Z"></path>
</svg>
\ No newline at end of file
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M16.6248248,16.7367614 L6.63398813,16.7367614 C5.1391954,16.7367614 4.01213252,15.5368462 4.01213252,13.945099 C4.01213252,12.5974721 4.81160648,11.5196347 5.98748991,11.2314121 C6.28384634,9.7885033 7.55245889,8.73112371 9.04513895,8.73112371 C9.48647817,8.73112371 9.92114483,8.8246451 10.3193501,9.00387093 C11.0700563,7.75957182 12.3987219,7.00108386 13.8688843,7.00108386 C16.1599291,7.00108386 18.0247933,8.87337761 18.0247933,11.1760598 C18.0247933,11.2935425 18.0198461,11.4110429 18.0103919,11.5260079 C18.8639329,12.0216431 19.4033005,12.9431596 19.4033005,13.9450813 C19.4033005,15.4847862 18.1571352,16.7367614 16.6248248,16.7367614 Z"></path>
</svg>
\ No newline at end of file
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M11.3205078,12.4320313 L8.38925781,12.4320313 C6.52714844,12.4320313 5.01503906,13.9359375 5.00546875,15.7994141 C5.00546875,17.5576172 6.43144531,18.9822622 8.18828125,18.9822622 C9.0796875,18.9863281 9.93554688,18.6363281 10.5685547,18.0074219 C11.2001953,17.3785156 11.5556641,16.5240234 11.5556641,15.6326172 L11.5556641,12.6330078 C11.5515625,12.5755859 11.5242188,12.5208984 11.4791016,12.4839844 C11.4353516,12.4457031 11.3779297,12.4279297 11.3205078,12.4320313 Z M12.6302734,11.5597656 L15.434375,11.5597656 C16.3777344,11.5597656 17.2828125,11.1837891 17.9472656,10.5152344 C18.6130859,9.84667969 18.9849609,8.94023438 18.9795517,7.996875 C18.9795517,6.34667969 17.6423828,5.00820313 15.9921875,5.00820313 C14.0220703,5.01914063 12.4292969,6.61875 12.4292969,8.59023438 L12.4292969,11.3191406 C12.4238281,11.3779297 12.4416016,11.4367188 12.4785156,11.4818359 C12.5167969,11.5269531 12.5714844,11.5542969 12.6302734,11.5597656 Z M15.8882813,12.4320313 L12.6302734,12.4320313 C12.5728516,12.4320313 12.5167969,12.4552734 12.4757813,12.4962891 C12.4347656,12.5373047 12.4115234,12.5933594 12.4115234,12.6507813 L12.4115234,15.9087891 C12.4210938,17.6027344 13.7923828,18.9740234 15.4863281,18.9835938 C17.4154297,18.9835938 18.9794922,17.4195313 18.9794922,15.4904297 C18.9603516,13.7951172 17.5822266,12.4320313 15.8882813,12.4320313 L15.8882813,12.4320313 Z M8.49863281,5.00820313 C6.56953125,5.00820313 5.00546875,6.57363281 5.00546875,8.50273438 C5.00546875,10.1912109 6.37402344,11.5597656 8.0625,11.5597656 L11.3246094,11.5597656 C11.3820313,11.5597656 11.4380859,11.5365234 11.4791016,11.4955078 C11.5201172,11.4544922 11.5433594,11.3984375 11.5433594,11.3410156 L11.5433594,8.06523438 C11.5419922,6.38222656 10.1816406,5.01640625 8.49863281,5.00820313 Z"></path>
</svg>
\ No newline at end of file
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M11.093804,15.7585235 C8.53702065,15.7585235 6.4314344,15.0065284 5.45384078,13.8785358 C5.15304274,14.2545333 5.00264373,14.7057304 5.00264373,15.0817279 C5.00264373,16.8113166 7.70982605,18.2401073 11.093804,18.2401073 C14.4777819,18.2401073 17.1849642,16.8113166 17.1849642,15.0817279 C17.1849642,14.6305309 17.0345652,14.2545333 16.7337671,13.8785358 C15.7561735,15.0065284 13.6505873,15.7585235 11.093804,15.7585235 Z M11.093804,12.2241466 C8.61222016,12.2241466 6.4314344,11.4721515 5.52904029,10.3441589 C5.15304275,10.7201564 5.00264373,11.1713535 5.00264373,11.6225505 C5.00264373,13.3521392 7.70982605,14.7809299 11.093804,14.7809299 C14.4777819,14.7809299 17.1849642,13.3521392 17.1849642,11.6225505 C17.1849642,11.1713535 17.0345652,10.7201564 16.6585676,10.3441589 C15.7561735,11.4721515 13.5753878,12.2241466 11.093804,12.2241466 L11.093804,12.2241466 Z M5.00264373,8.16337309 C5.00264373,9.8929618 7.70982605,11.3217525 11.093804,11.3217525 C14.4777819,11.3217525 17.1849642,9.89296179 17.1849642,8.16337309 C17.1849642,6.43378439 14.4777819,5.00499372 11.093804,5.00499372 C7.70982605,5.00499372 5.00264373,6.43378439 5.00264373,8.16337309 Z"></path>
</svg>
\ No newline at end of file
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M12.7856525,5.29451465 C12.3584042,4.90695751 11.706772,4.90695751 11.2795237,5.29451465 L5.18928141,11.0774479 C4.96232366,11.2859844 4.94574596,11.6384344 5.15212775,11.8673533 C5.35850954,12.0962721 5.71078713,12.1161806 5.94164659,11.9119719 L6.03848914,11.820024 L6.03848914,17.8557268 C6.03811794,18.1539803 6.15633861,18.4401453 6.3671047,18.6511737 C6.5778708,18.8622021 6.86388852,18.9807785 7.16214233,18.9807785 L10.432064,18.9807785 L10.432064,15.597932 C10.4317855,15.3878579 10.515066,15.1862975 10.6635454,15.037687 C10.8120247,14.8890764 11.0135115,14.805618 11.2235858,14.8057111 L12.7622285,14.8057111 C12.9723028,14.805618 13.1737895,14.8890764 13.3222689,15.037687 C13.4707483,15.1862975 13.5540287,15.3878579 13.5537502,15.597932 L13.5537502,18.9807785 L16.9012858,18.9807785 C17.1996002,18.9807785 17.4857078,18.8623359 17.6965495,18.6512974 C17.9073913,18.440259 18.0256599,18.1540409 18.0252886,17.8557268 L18.0252886,11.8937921 C18.2749116,12.1196415 18.6290687,12.1025105 18.8367382,11.8710673 C18.9366207,11.7604582 18.9884634,11.6146957 18.9808575,11.4658567 C18.9732516,11.3170178 18.9068205,11.1772992 18.7961832,11.0774479 L12.7856525,5.29486426 L12.7856525,5.29451465 Z"></path>
</svg>
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M16.6666667,6 C17.7712362,6 18.6666667,6.8954305 18.6666667,8 L18.6666667,16 C18.6666667,17.1045695 17.7712362,18 16.6666667,18 L8,18 C6.8954305,18 6,17.1045695 6,16 L6,8 C6,6.8954305 6.8954305,6 8,6 L16.6666667,6 Z M17.22,11.512 L16.39,11.512 L15.7833333,10.028 L15.6853333,9.96533333 L14.9253333,9.95866666 L14.8246667,10.0206667 L13.26,13.816 L12.4666667,8.18 L12.376,8.09666667 L11.594,8 L11.4806667,8.062 L9.76066666,12.278 L8.836,11.5626667 L8.552,11.4626667 L7.43933333,11.4573333 L7.33333334,11.5533333 L7.33333334,12.3506667 L7.43933333,12.4466667 L8.34066667,12.4466667 L9.674,13.4686667 L9.77333333,13.4873333 L10.4046667,13.3153333 L10.474,13.2573333 L11.7226667,10.1946667 L12.508,15.8146667 L12.598,15.8966667 L13.38,16 L13.4946667,15.9386667 L15.304,11.5473333 L15.564,12.1846667 L15.9813333,12.4766667 L16.0433333,12.4946667 L17.2273333,12.4946667 L17.3333333,12.398 L17.3266667,11.6073333 L17.22,11.512 L17.22,11.512 Z"></path>
</svg>
\ No newline at end of file
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M18.6668129,6 L15.5560432,6 C14.8227903,6 13.7986526,6.41272987 13.280154,6.91720451 L8.05522727,12.0008107 C7.53675638,12.5052583 7.53675638,13.3307451 8.05522727,13.8352197 L11.9469669,17.621644 C12.4654378,18.1261187 13.3138725,18.1261187 13.8323712,17.621644 L19.0572423,12.5380919 C19.5757965,12.0336172 20,11.0371798 20,10.3237595 L20,7.29712785 C20,6.58370753 19.4000658,6 18.6668129,6 Z M16.8892302,10.3237595 C16.1529221,10.3237595 15.5560432,9.74302456 15.5560432,9.02663166 C15.5560432,8.31023875 16.1529221,7.7295038 16.8892302,7.7295038 C17.6255383,7.7295038 18.2224173,8.31023875 18.2224173,9.02663166 C18.2224173,9.74302456 17.6255383,10.3237595 16.8892302,10.3237595 Z M6.09355362,13.223705 L10.8482819,17.8498304 C10.3446705,18.1087155 9.70310202,18.0327795 9.28059282,17.621644 L5.38885317,13.8352197 C4.87038228,13.3307451 4.87038228,12.5052583 5.38885317,12.0008107 L10.6137799,6.91720451 C11.1322785,6.41272987 12.1564162,6 12.8896691,6 L6.09355362,12.6122714 C5.92073925,12.7804386 5.92073925,13.0555648 6.09355362,13.223705 Z"></path>
</svg>
\ No newline at end of file
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M17.765625,12 C17.765625,11.18125 18.2796875,10.4875 19,10.2109375 C18.828125,9.5359375 18.5625,8.9 18.215625,8.315625 C17.509375,8.6296875 16.65625,8.5015625 16.078125,7.921875 C15.5,7.34375 15.371875,6.4890625 15.6859375,5.784375 C15.1,5.4375 14.4640625,5.171875 13.7890625,5 C13.5109375,5.7203125 12.8171875,6.234375 12,6.234375 C11.18125,6.234375 10.4875,5.7203125 10.2109375,5 C9.5359375,5.171875 8.9,5.4375 8.315625,5.784375 C8.6296875,6.490625 8.5015625,7.34375 7.9234375,7.921875 C7.3453125,8.5 6.490625,8.628125 5.7859375,8.315625 C5.4375,8.9 5.171875,9.5359375 5,10.2109375 C5.7203125,10.4890625 6.234375,11.1828125 6.234375,12 C6.234375,12.81875 5.7203125,13.5125 5,13.7890625 C5.171875,14.4640625 5.4375,15.1 5.784375,15.684375 C6.490625,15.3703125 7.34375,15.4984375 7.921875,16.078125 C8.5,16.65625 8.628125,17.5109375 8.3140625,18.215625 C8.9,18.5625 9.5359375,18.828125 10.2109375,19 C10.4890625,18.2796875 11.1828125,17.765625 12,17.765625 C12.81875,17.765625 13.5125,18.2796875 13.7890625,19 C14.4640625,18.828125 15.1,18.5625 15.684375,18.215625 C15.3703125,17.509375 15.4984375,16.65625 16.0765625,16.078125 C16.6546875,15.5 17.509375,15.371875 18.2140625,15.684375 C18.5625,15.1 18.828125,14.4640625 19,13.7890625 C18.2796875,13.5125 17.765625,12.81875 17.765625,12 Z M12,13.921875 C10.9390625,13.921875 10.078125,13.0609375 10.078125,12 C10.078125,10.9390625 10.9390625,10.078125 12,10.078125 C13.0609375,10.078125 13.921875,10.9390625 13.921875,12 C13.921875,13.0609375 13.0609375,13.921875 12,13.921875 Z"></path>
</svg>
\ No newline at end of file
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M5,15.5676909 C5.03095109,16.1522602 5.50465989,16.6076771 6.07378825,16.6000156 L11.5915245,16.6000156 L11.5915245,18.1714107 L9.47996209,18.1714107 C9.25750784,18.1714107 9.07717303,18.3568968 9.07717303,18.5857054 C9.07717303,18.814514 9.25750784,19 9.47996209,19 L14.5200379,19 C14.7424922,19 14.922827,18.814514 14.922827,18.5857054 C14.922827,18.3568968 14.7424922,18.1714107 14.5200379,18.1714107 L12.4084755,18.1714107 L12.4084755,16.6000156 L17.9262118,16.6000156 C18.4948551,16.6068393 18.9687246,16.1516026 19,15.5676909 L19,14.6201747 L5,14.6201747 L5,15.5676909 L5,15.5676909 Z M17.9271595,7.00007804 L6.07284052,7.00007804 C5.4909608,6.99352847 5.01243475,7.47007065 5,8.06847077 L5,13.696054 L19,13.696054 L19,8.06847077 C18.9875632,7.46968644 18.508459,6.99298965 17.9262118,7.00007804 L17.9271595,7.00007804 Z"></path>
</svg>
\ No newline at end of file
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
"element": "home/index.vue", "element": "home/index.vue",
"title": "站内信", "title": "站内信",
"level": 1, "level": 1,
"icon": "401",
"showInAsideMenu": false "showInAsideMenu": false
} }
}, },
...@@ -33,12 +32,12 @@ ...@@ -33,12 +32,12 @@
"element": "home/index.vue", "element": "home/index.vue",
"title": "公告列表", "title": "公告列表",
"level": 1, "level": 1,
"icon": "401",
"showInAsideMenu": false "showInAsideMenu": false
} }
}, },
{ {
"path": "chain", "path": "chain",
"name": "chain",
"meta": { "title": "链管理", "icon": "chain", "level": 1, "showInAsideMenu": true}, "meta": { "title": "链管理", "icon": "chain", "level": 1, "showInAsideMenu": true},
"children": [ "children": [
{ {
...@@ -67,11 +66,30 @@ ...@@ -67,11 +66,30 @@
}, },
{ {
"path": "key-management", "path": "key-management",
"name": "KeyManagement", "name": "key-management",
"element": "home/index.vue", "element": "home/index.vue",
"meta": { "title": "密钥管理", "level": 2,"showInAsideMenu": true } "meta": { "title": "密钥管理", "level": 2,"showInAsideMenu": true }
} }
] ]
},
{
"path": "openapi",
"name": "openapi",
"meta": { "title": "OpenApi", "icon": "app" },
"children": [
{
"path": "app-management",
"name": "app-management",
"element": "home/index.vue",
"meta": { "title": "授权管理", "level": 2,"showInAsideMenu": true }
},
{
"path": "app-openapi",
"name": "app-openapi",
"element": "home/index.vue",
"meta": { "title": "接口文档", "level": 2,"showInAsideMenu": true }
}
]
} }
] ]
} }
...@@ -14,21 +14,10 @@ const NodePolyfillPlugin = require('node-polyfill-webpack-plugin') ...@@ -14,21 +14,10 @@ const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
const glob = require('glob') const glob = require('glob')
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin') const LodashModuleReplacementPlugin = require('lodash-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin') const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const WebpackShellPluginNext = require('webpack-shell-plugin-next')
console.log('sign:::', sign) console.log('sign:::', sign)
const isProduction = process.env.NODE_ENV === 'production' const isProduction = process.env.NODE_ENV === 'production'
const appConfig = require(`./config/${sign}.config.js`) const appConfig = require(`./config/${sign}.config.js`)
require('svgtofont')({
src: path.resolve(process.cwd(), 'src/assets/icons/svg'), // svg文件目录
dist: path.resolve(process.cwd(), 'src/assets/font'), // 生成文件目录
fontName: 'font', // 生成文件名称和字体名称
css: true, // 生成字体文件
})
.then(() => {
console.log('生成字体成功')
})
.catch(() => {
console.log('生成字体失败')
})
const pages = {} const pages = {}
// 配置pages多页面获取当前文件夹下的html和js // 配置pages多页面获取当前文件夹下的html和js
glob.sync('./src/pages/*/*.ts').forEach(filepath => { glob.sync('./src/pages/*/*.ts').forEach(filepath => {
...@@ -166,6 +155,18 @@ module.exports = defineConfig({ ...@@ -166,6 +155,18 @@ module.exports = defineConfig({
), ),
new ProvidePlugin({}), new ProvidePlugin({}),
new NodePolyfillPlugin(), new NodePolyfillPlugin(),
new WebpackShellPluginNext({
onBuildStart: {
scripts: ['echo "Webpack Start"', 'yarn font'],
blocking: true,
parallel: false,
},
onBuildEnd: {
scripts: ['echo "Webpack End"'],
blocking: false,
parallel: true,
},
}),
], ],
}, },
devServer: { devServer: {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment