cd /usr/local/bin
# create symlink
ln -s /Applications/ngrok ngrok
ngrok -h
ngrok http 8080
~/.ngrok2/ngrok.ymlD
npm install ngrok -g
.....
var ngrok = require('ngrok'), //замена localtunnel, inspector => http://127.0.0.1:4040
.....
var config = {
server: {
baseDir: "./build"
},
//tunnel: true,
host: 'localhost',
port: 1984,
directoryListing: true,
logPrefix: ''
};
gulp.task('webserver', function () {
//browserSync(config);
browserSync(config, function (err, bs) {
ngrok.connect({
proto: 'http', // http|tcp|tls
addr: bs.options.get('port'), // port or network address
}, function (err, url) {
gutil.log('[ngrok]', ' => ', gutil.colors.magenta.underline(url));
});
});
});
<script>
function slideup(){
t = document.querySelector(".slide");
t.scrollTop -= t.offsetHeight;
}
function slidedown(){
t = document.querySelector(".slide");
t.scrollTop += t.offsetHeight;
}
</script>
<i class="icon icon-up" onclick="slideup()"></i>
<div class="slider" style="overflow-y: auto">
...
</div>
<i class="icon icon-down" onclick="slidedown()"></i>
.pipe(plugins.rigger())
, можно ведь так: .pipe(rigger())
, возможно это не даст ускорения, но будет правильно gulp.task('styles:vendor', function() {
gulp.src(mainBowerFiles({
"overrides": {
"normalize.css": {
"main": "./normalize.css"
},
"magnific-popup": {
"main": "./dist/magnific-popup.css"
},
"slick-carousel": {
"main": [
"./slick/slick.css",
"./slick/slick-theme.css",
"./slick/fonts/*.*"
]
}
}
}))
.pipe(cssFilter)
.pipe(concat('vendor.css'))
.pipe(gulpIf(env !== 'dev', minifyCSS()))
.pipe(gulp.dest(outputDir + 'css'))
});
<!-- build:css css/vendor.css -->
<!-- bower:css -->
<!-- endbower -->
<!-- endbuild -->
<link rel="stylesheet" href="css/vendor.css">
.pipe(wiredep())
.pipe(useref())