Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
testspark317
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
testspark317
Commits
5d41e451
Commit
5d41e451
authored
Mar 17, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab2.dui88.com:wildfirecode13/testspark317
parents
c8940c5a
3811b321
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
HtmlJsToES5Plugin.js
project/config/HtmlJsToES5Plugin.js
+2
-2
webpack.common.config.js
project/config/webpack.common.config.js
+0
-2
index.html
project/public/index.html
+14
-2
No files found.
project/config/HtmlJsToES5Plugin.js
View file @
5d41e451
...
@@ -31,5 +31,5 @@ class HtmlJsToES5Plugin {
...
@@ -31,5 +31,5 @@ class HtmlJsToES5Plugin {
}
}
}
}
exports
.
default
=
HtmlJsToES5Plugin
;
//
exports.default = HtmlJsToES5Plugin;
module
.
exports
=
exports
[
'default'
]
;
module
.
exports
=
HtmlJsToES5Plugin
;
project/config/webpack.common.config.js
View file @
5d41e451
const
path
=
require
(
'path'
);
const
path
=
require
(
'path'
);
const
fs
=
require
(
"fs"
);
const
fs
=
require
(
"fs"
);
const
HtmlJsToES5Plugin
=
require
(
"./HtmlJsToES5Plugin"
);
const
{
SPARK_CONFIG_DIR_KEY
,
SPARK_CONFIG
}
=
require
(
'./scripts/constant'
);
const
{
SPARK_CONFIG_DIR_KEY
,
SPARK_CONFIG
}
=
require
(
'./scripts/constant'
);
const
HtmlWebpackPlugin
=
require
(
"html-webpack-plugin"
);
const
HtmlWebpackPlugin
=
require
(
"html-webpack-plugin"
);
...
...
project/public/index.html
View file @
5d41e451
...
@@ -38,8 +38,8 @@
...
@@ -38,8 +38,8 @@
function
getUrlParam
(
name
)
{
function
getUrlParam
(
name
)
{
var
search
=
window
.
location
.
search
;
var
search
=
window
.
location
.
search
;
var
matched
=
search
var
matched
=
search
.
slice
(
1
)
.
slice
(
1
)
.
match
(
new
RegExp
(
'(^|&)'
+
name
+
'=([^&]*)(&|$)'
,
'i'
));
.
match
(
new
RegExp
(
'(^|&)'
+
name
+
'=([^&]*)(&|$)'
,
'i'
));
return
search
.
length
?
matched
&&
matched
[
2
]
:
null
;
return
search
.
length
?
matched
&&
matched
[
2
]
:
null
;
}
}
...
@@ -48,6 +48,18 @@
...
@@ -48,6 +48,18 @@
// alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。")
// alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。")
}
}
</script>
</script>
<script>
async
function
a
(){
}
async
function
b
(){
await
a
();
}
b
();
</script>
</head>
</head>
<body>
<body>
...
...
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