Skip to content

Instantly share code, notes, and snippets.

View demian85's full-sized avatar
🏠
Hacking from home

Demián Rodriguez demian85

🏠
Hacking from home
View GitHub Profile
const path = require('path');
const webpack = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const mode = process.env.NODE_ENV || 'production';
const devtool = mode === 'development' ? 'cheap-module-source-map' : 'source-map';
const serverBuild = {
mode,
@demian85
demian85 / agg.js
Created February 11, 2021 14:40
mongodb insane aggregation query
.aggregate([
{
$lookup: {
from: 'snapshots',
let: { address: '$address' },
pipeline: [
{
$match: {
$expr: {
$and: [