Skip to content

Instantly share code, notes, and snippets.

@sergx
sergx / gist:d8eba83fa6a806c728dcb299e2e12d27
Created October 8, 2019 16:28
Как сделать так, чтобы webpack формировал несколько HTML файлов на выходе
//https://github.com/jantimon/html-webpack-plugin/issues/218#issuecomment-183066602
module.exports = {
entry: {
'page1': './apps/page1/scripts/main.js',
'page2': './apps/page2/src/main.js'
},
output: {
path: __dirname,
filename: "apps/[name]/build/bundle.js"
@sergx
sergx / gist:50faa5443147a635f366aaf5aa4deac2
Last active October 8, 2019 13:36
Как экспортировать базу данных с локального сервера (Open Server) через консоль
D:/open-server/ospanel/modules/database/MariaDB-10.3-x64/bin/mysqldump.exe -u BD_USER_NAME -pBD_PASS BD_NAME > FILENAME.sql
<!DOCTYPE html>
<html>
<head>
<title>MODX test</title>
<base href="[[++site_url]]">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
div div {
border:1px solid #ccc;
float: left;
margin:15px;
}
p {border:1px solid; margin:50px; width:25px;height:25px; font-size:20px; line-height:25px; text-align:center;}
div div:nth-last-child(3):nth-child(1) p, div div:nth-last-child(3):nth-child(1) ~ div p{
border:2px solid red;
}