Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
provus
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
provus
Merge requests
!36
3374540: Remove browserSync and fix gulp watch.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
3374540: Remove browserSync and fix gulp watch.
issue/provus-3374540:3374540-fix-gulp-watch
into
2.1.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Aaron Armstrong
requested to merge
issue/provus-3374540:3374540-fix-gulp-watch
into
2.1.x
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#3374540
0
0
Merge request reports
Compare
2.1.x
2.1.x (base)
and
latest version
latest version
9a11768e
1 commit,
1 year ago
1 file
+
1
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
web/themes/custom/provus_bootstrap/gulpfile.js
+
1
−
8
Options
@@ -8,7 +8,6 @@ let gulp = require('gulp'),
postcss
=
require
(
'
gulp-postcss
'
),
autoprefixer
=
require
(
'
autoprefixer
'
),
postcssInlineSvg
=
require
(
'
postcss-inline-svg
'
),
browserSync
=
require
(
'
browser-sync
'
).
create
()
pxtorem
=
require
(
'
postcss-pxtorem
'
),
postcssProcessors
=
[
postcssInlineSvg
({
@@ -65,23 +64,17 @@ function styles () {
.
pipe
(
cleanCss
())
.
pipe
(
rename
({
suffix
:
'
.min
'
}))
.
pipe
(
gulp
.
dest
(
paths
.
scss
.
dest
))
.
pipe
(
browserSync
.
stream
())
}
// Move the javascript files into our js folder
function
js
()
{
return
gulp
.
src
([
paths
.
js
.
bootstrap
,
paths
.
js
.
popper
,
paths
.
js
.
barrio
])
.
pipe
(
gulp
.
dest
(
paths
.
js
.
dest
))
.
pipe
(
browserSync
.
stream
())
}
// Static Server + watching scss/html files
function
serve
()
{
browserSync
.
init
({
proxy
:
'
https://provus2.ddev.site/
'
,
})
gulp
.
watch
([
paths
.
scss
.
watch
,
paths
.
scss
.
bootstrap
],
styles
).
on
(
'
change
'
,
browserSync
.
reload
)
gulp
.
watch
([
paths
.
scss
.
watch
,
paths
.
scss
.
bootstrap
],{
interval
:
1000
,
usePolling
:
true
},
styles
)
}
const
build
=
gulp
.
series
(
styles
,
gulp
.
parallel
(
js
,
serve
))
Loading