setup-okna / landing-page-gefest

Проект переехал на https://github.com/khusamov/today
0 stars 0 forks source link

net::ERR_SSL_VERSION_OR_CIPHER_MISMATCH #16

Open khusamov opened 8 years ago

khusamov commented 8 years ago

2015-10-26 16-30-35 1578888 2015-10-26 16-31-04 1578888 2015-10-26 16-31-28 1578888 2015-10-26 16-32-40 1578888

khusamov commented 8 years ago

Прямое решение проблемы не найдено. Так как не до конца понятна причина невозможности загрузки данного файла.

Косвенное решение проблемы в процессе (решение заключается в переносе данного файла на сервер, где находится сам сайт).

https://github.com/shutterstock/postcss-copy-assets/issues/4 https://github.com/devex-web-frontend/postcss-assets-rebase/issues/8 https://toster.ru/q/260416 https://toster.ru/q/260104 https://github.com/postcss/postcss

Пока сборка проекта делается вручную.

Одно из возможных решений проблемы использовать webpack.

https://github.com/webpack/webpack

khusamov commented 8 years ago

Создан тестовый репозиторий для повторения ошибки. Ошибка пока не повторяется.

https://github.com/khusamov/problem-postcss-assets-rebase

khusamov commented 8 years ago

В ответ на мой тикет https://github.com/shutterstock/postcss-copy-assets/issues/4 написали, что проблему не могут повторить.

Создали тестовый репозиторий: https://github.com/alexmchardy/copy-assets-issue-4

Мой форк их тестового репозитория: https://github.com/khusamov/problem-postcss-copy-assets

Вот их галпфайл:

var gulp = require('gulp');
var postcss = require('gulp-postcss');
var copyAssets = require('postcss-copy-assets');
var concat = require('gulp-concat');

gulp.task("css", function () {
    var src = ["bower_components/bootswatch/united/bootstrap.css"];
    return gulp.src(src)
        .pipe(postcss([
                copyAssets({ base: "public/build" })
            ],
            { to: "public/build/css/all.css" })
        )
        .pipe(concat("all.css"))
        .pipe(gulp.dest("public/build/css"));
});

gulp.task("default", ["css"]);

Вот их результат:

public
`-- build
    |-- css
    |   `-- all.css
    `-- fonts
        |-- glyphicons-halflings-regular.eot
        |-- glyphicons-halflings-regular.svg
        |-- glyphicons-halflings-regular.ttf
        |-- glyphicons-halflings-regular.woff
        `-- glyphicons-halflings-regular.woff2
@font-face {
    src: url("../fonts/glyphicons-halflings-regular.eot");
}