Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mall-webview
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
frontend
mall-webview
Commits
020556bd
Commit
020556bd
authored
Apr 07, 2021
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: build config
parent
6fb5e2b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
vue.config.js
vue.config.js
+9
-4
No files found.
vue.config.js
View file @
020556bd
/* eslint-disable @typescript-eslint/no-var-requires */
const
tsImportPluginFactory
=
require
(
"ts-import-plugin"
);
const
merge
=
require
(
"webpack-merge"
);
module
.
exports
=
{
publicPath
:
"./"
,
...
...
@@ -33,18 +34,22 @@ module.exports = {
.
rule
(
"ts"
)
.
use
(
"ts-loader"
)
.
tap
(
options
=>
{
return
Object
.
assign
(
options
||
{}
,
{
transpileOnly
:
fals
e
,
options
=
merge
(
options
,
{
transpileOnly
:
tru
e
,
getCustomTransformers
:
()
=>
({
before
:
[
tsImportPluginFactory
({
libraryDirectory
:
"es"
,
libraryName
:
"vant"
,
libraryDirectory
:
"es"
,
style
:
true
})
]
})
}),
compilerOptions
:
{
module
:
"es2015"
}
});
return
options
;
});
},
css
:
{
...
...
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