S
S
Sergey Goryachev2017-11-09 11:59:17
linux
Sergey Goryachev, 2017-11-09 11:59:17

Scripts not working in galpa?

I ran into a problem after reinstalling my computer.
On local (sitename.loc and https://sitename.loc) sites work without problems, everything starts, scripts, styles.
But if you run gulp watch ( https://sitename.loc:8080), scripts in browserSync do not work.
They compile, the files are created, but the scripts do not work.
Galp does not give any errors, everything works as it did before.
Only without scripts. And this is sad.
Perhaps someone came across or will tell you where to dig.
UPD
There is a suspicion that the problem is in browserSync

// browser-sync task and settings
gulp.task('browserSync', ['css', 'scripts', 'views'], function(){
    browserSync.init({
        open: 'external',
        host: localhost,
        proxy: localhost,
        https: true,
        port: 8080
    });
});

Although all tasks work out without causing problems.
[12:13:26] Starting 'clean'...
[12:13:26] Starting 'scripts'...
[12:13:26] Starting 'views'...
[12:13:26] Finished 'views' after 179 ms
[12:13:26] Finished 'clean' after 193 ms
[12:13:26] Starting 'sass'...
[12:13:28] Finished 'scripts' after 1.43 s
[12:13:28] Finished 'sass' after 1.29 s
[12:13:28] Starting 'css'...
[12:13:28] Finished 'css' after 626 ms
[12:13:28] Starting 'browserSync'...
[12:13:28] Finished 'browserSync' after 11 ms
[12:13:28] Starting 'watch'...
[12:13:29] Finished 'watch' after 513 ms

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question