Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Cesium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Cesium-grp
Cesium
Commits
9d073ec9
Commit
9d073ec9
authored
4 years ago
by
Benoit Lavenier
Browse files
Options
Downloads
Patches
Plain Diff
[fix] Fix gulp task webIntegrity
parent
357d4417
No related branches found
No related tags found
No related merge requests found
Pipeline
#9505
failed
4 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gulpfile.js
+3
-6
3 additions, 6 deletions
gulpfile.js
with
3 additions
and
6 deletions
gulpfile.js
+
3
−
6
View file @
9d073ec9
...
...
@@ -570,7 +570,7 @@ function webUglify() {
}
}
function
webIntegrity
(
done
)
{
function
webIntegrity
()
{
const
targetPath
=
'
./dist/web/www
'
;
const
enableIntegrity
=
argv
.
release
||
false
;
...
...
@@ -579,8 +579,7 @@ function webIntegrity(done) {
log
(
colors
.
green
(
'
Create index.integrity.html...
'
));
// Process index.html
return
gulp
.
series
(
gulp
.
src
(
targetPath
+
'
/index.html
'
,
{
base
:
targetPath
})
return
gulp
.
src
(
targetPath
+
'
/index.html
'
,
{
base
:
targetPath
})
// Add an integrity hash
.
pipe
(
sriHash
())
...
...
@@ -590,9 +589,7 @@ function webIntegrity(done) {
gulp
.
src
(
targetPath
+
'
/index.html
'
,
{
base
:
targetPath
})
.
pipe
(
rename
({
extname
:
'
.test.html
'
}))
.
pipe
(
gulp
.
dest
(
targetPath
))
)
.
on
(
'
end
'
,
done
);
.
pipe
(
gulp
.
dest
(
targetPath
));
}
if
(
done
)
done
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment