-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ISSUES CLOSED: #15
- Loading branch information
master1lan
committed
Feb 17, 2023
1 parent
e2db505
commit ca939da
Showing
8 changed files
with
493 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,4 +23,7 @@ dist-ssr | |
| *.sln | ||
| *.sw? | ||
|
|
||
| stats.html | ||
| stats.html | ||
|
|
||
|
|
||
| vite.config.ts.* | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [auth] | ||
| token=78eaf826e5e2483d9f64db473183b2894c80b247893e40a8b990f54c35fec9e5 | ||
| [defaults] | ||
| url=https://sentry.vtb.link |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,23 @@ | ||
| import fs from "fs"; | ||
| import path from "path"; | ||
|
|
||
| fs.cp( | ||
| "./dist/EOEFANS/eoefans-web/assets", | ||
| "./dist/assets", | ||
| { recursive: true }, | ||
| (err) => { | ||
| console.log(err); | ||
| /** | ||
| * delete source map after upload to sentry | ||
| */ | ||
| const filePath = `./dist/assets/`; | ||
| const fileList = fs.readdirSync(filePath); | ||
| fileList.forEach((file) => { | ||
| const full_name_file = path.join(filePath, file); | ||
| if (path.extname(full_name_file) === ".map") { | ||
| fs.unlinkSync(full_name_file); | ||
| } | ||
| ); | ||
| }); | ||
|
|
||
| // fs.cp( | ||
| // "./dist/EOEFANS/eoefans-web/assets", | ||
| // "./dist/assets", | ||
| // { recursive: true }, | ||
| // (err) => { | ||
| // console.log(err); | ||
| // } | ||
| // ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.