Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uni-app-template
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenzhiqiang
uni-app-template
Commits
06a95d15
Commit
06a95d15
authored
Jul 19, 2022
by
shenzhiqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 报错修复
parent
55abcfa1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
40 deletions
+3
-40
sfc.d.ts
sfc.d.ts
+2
-4
tsconfig.json
tsconfig.json
+1
-1
vue.config.js
vue.config.js
+0
-35
No files found.
sfc.d.ts
View file @
06a95d15
...
@@ -10,9 +10,7 @@ declare module 'vue/types/options' {
...
@@ -10,9 +10,7 @@ declare module 'vue/types/options' {
}
}
declare
module
'
vue/types/vue
'
{
declare
module
'
vue/types/vue
'
{
interface
Vue
extends
GlobalMixins
{
interface
Vue
extends
GlobalMixins
{
$u
:
$u
,
$u
:
$u
;
$scss
:
any
$scss
:
any
;
}
}
}
}
declare
var
ROUTES
=
[]
tsconfig.json
View file @
06a95d15
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
]
]
},
},
"include"
:
[
"include"
:
[
"
src/
**/*.ts"
,
"**/*.ts"
,
"src/**/*.tsx"
,
"src/**/*.tsx"
,
"src/**/*.vue"
,
"src/**/*.vue"
,
"tests/**/*.ts"
,
"tests/**/*.ts"
,
...
...
vue.config.js
deleted
100644 → 0
View file @
55abcfa1
// vue.config.js
const
TransformPages
=
require
(
'
uni-read-pages
'
)
const
ForkTsCheckerWebpackPlugin
=
require
(
'
fork-ts-checker-webpack-plugin
'
)
const
{
webpack
}
=
new
TransformPages
()
module
.
exports
=
{
configureWebpack
:
(
config
)
=>
{
config
.
plugins
=
[
new
webpack
.
DefinePlugin
({
ROUTES
:
webpack
.
DefinePlugin
.
runtimeValue
(()
=>
{
const
tfPages
=
new
TransformPages
({
includes
:
[
'
path
'
,
'
name
'
,
'
aliasPath
'
]
})
return
JSON
.
stringify
(
tfPages
.
routes
)
},
true
)
})
]
// 限制工作线程使用1024MB内存
// get a reference to the existing ForkTsCheckerWebpackPlugin
const
existingForkTsChecker
=
config
.
plugins
.
filter
(
p
=>
p
instanceof
ForkTsCheckerWebpackPlugin
)[
0
]
// remove the existing ForkTsCheckerWebpackPlugin
// so that we can replace it with our modified version
config
.
plugins
=
config
.
plugins
.
filter
(
p
=>
!
(
p
instanceof
ForkTsCheckerWebpackPlugin
)
)
// copy the options from the original ForkTsCheckerWebpackPlugin
// instance and add the memoryLimit property
const
forkTsCheckerOptions
=
existingForkTsChecker
.
options
forkTsCheckerOptions
.
memoryLimit
=
1024
config
.
plugins
.
push
(
new
ForkTsCheckerWebpackPlugin
(
forkTsCheckerOptions
))
},
transpileDependencies
:
[
'
uview-ui
'
]
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment