Commit 0a799634 authored by Simon's avatar Simon

Merge branch 'browser-sync' into dev

parents 909418f9 26c60d7c
This diff is collapsed.
......@@ -15,7 +15,7 @@ export function serveCoreCSS () {
require('postcss-custom-media')(), // custom media
require('postcss-preset-env')(), // autoprefixer, CSS 4
require('postcss-critical-split')({ // critical CSS
'output': 'critical'
output: 'critical'
}),
require('css-mqpacker')(), // merge media queries
require('cssnano')({ // minify CSS; Disable autoprefixer, because it's already included in cssnext
......
......@@ -15,7 +15,7 @@ export function serveMainCSS () {
require('postcss-custom-media')(), // custom media
require('postcss-preset-env')(), // autoprefixer, CSS 4
require('postcss-critical-split')({ // critical CSS
'output': 'rest'
output: 'rest'
}),
require('css-mqpacker')(), // merge media queries
require('cssnano')({ // minify CSS; Disable autoprefixer, because it's already included in cssnext
......@@ -47,7 +47,8 @@ export function serveMainCSS () {
if (conf.isProduction) {
stream = stream
.pipe(rev());
.pipe(rev())
.on('error', logError);
} else {
stream = stream
.pipe(cached('css-main'))
......
import gulp from 'gulp';
import browser from 'browser-sync';
import webpack from 'webpack';
// import http2 from 'http2';
// import http2 from 'node-http2';
import webpackDevMiddleware from 'webpack-dev-middleware';
......@@ -36,39 +36,23 @@ export function server () {
logPrefix: 'Biuro',
socket: {
domain: 'dev.biuro.lt:2000'
// domain: 'https://10.0.75.1:3000/'
// // port: 2000
},
// proxy: {
// target: 'https://dev.biuro.lt'
// ws: false
// },
proxy: {
target: 'https://dev.biuro.lt/',
// target: 'dev.biuro.lt:443',
// proxyRes: [
// function (proxyRes, req, res) {
// // console.log(proxyRes.headers);
// console.log(req);
// }
// ],
target: conf.proxy,
ws: false
},
// httpModule: http2,
https: {
key: conf.certs.key,
cert: conf.certs.cert
},
// files: [
// `wp-content/themes/${conf.name}/**/*.php`,
// `wp-content/themes/${conf.name}/css/main.min.css`
// ],
files: [
// `wp-content/themes/${conf.name}/**/*.php`,
`wp-content/themes/${conf.name}/css/main.min.css`
],
ghostMode: false,
open: false,
port: 2000,
// server: false,
ui: false,
// notify: false,
middleware: [
webpackDevMiddleware(bundler, { /* options */ }),
webpackHotMiddleware(bundler)
......@@ -92,20 +76,4 @@ export function server () {
gulp.watch([`wp-content/themes/${conf.name}/css/core.min.css`], { delay: 0 }, gulp.series(reload));
gulp.watch([`wp-content/themes/${conf.name}/**/*.php`], { delay: 0 }, gulp.series(reload));
// gulp.watch('wp-content/content/**/*.*').on('change', () => {
// serveContent();
// bs.reload();
// });
// gulp.watch([`wp-content/themes/${conf.name}/css/**/*.css`, `!wp-content/themes/${conf.name}/css/**/*.min.css`], gulp.parallel(serveCoreCSS, serveMainCSS));
// gulp.watch(`wp-content/themes/${conf.name}/css/core.min.css`).on('change', bs.reload);
// gulp.watch(`wp-content/themes/${conf.name}/**/*.php`).on('change', bs.reload);
// gulp.watch(`wp-content/themes/${conf.name}/css/main.min.css`).on('change', bs.stream);
// `wp-content/themes/${conf.name}/**/*.php`,
// `wp-content/themes/${conf.name}/css/main.min.css`
}
......@@ -41,6 +41,10 @@ let config = {
mode: conf.env,
watchOptions: {
poll: true
},
module: {
rules: [{
test: /\.js?$/,
......
......@@ -36,7 +36,7 @@ qa-: Signify that a QA or Test Engineering team is running an automated UI test
/* critical:start */
/* critical:end */
/** { border: 1px solid #000; }*/
/** { border: 1px solid #00f; }*/
input::-webkit-calendar-picker-indicator {
display: none;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -59,6 +59,8 @@ const lisp = (str) => {
return str;
};
// console.error(46);
const autocomplete = (str) => {
const node = document.getElementById(str);
const arrow = document.querySelector('.js-toggle--' + str);
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment