Skip to content

Instantly share code, notes, and snippets.

View bymathias's full-sized avatar

Mathias Brouilly bymathias

View GitHub Profile
-
var { options, files } = self.htmlWebpackPlugin
var { env, app, page } = options
include _mixins
doctype
html(
class='no-js'
class=page.layout === 'bare' ? 'is-layout-bare' : 'is-layout-default has-navbar-fixed-top'
/* pages/_home.scss */
// -----------------------------------------------------------------------------
// Section: hero
// -----------------------------------------------------------------------------
.home {
.has-bg-img {
background-image: url('../img/scott-webb-GQD3Av_9A88-unsplash.jpg');
background-position: center 75%;
//-
output: 'index'
chunks: [ 'main' ]
sitemap:
path: '/'
priority: 0.8
changeFreq: 'monthly'
page:
class: 'home'
title: 'Home'
{
"name": "cactus-boilerplate",
"version": "1.0.0",
"description": "Minimalist fullstack boilerplate and build process to quickly get projects going.",
"author": "Mathias Brouilly",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/bymathias/cactus"
},
<!doctype html>
<html class="no-js is-layout-bare" lang="">
<head>
<meta charset="utf-8">
<!-- <title>Home | <%= htmlWebpackPlugin.options.TITLE %></title> -->
<title>Home | Cactus Boilerplate</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="">
<!doctype html>
<html class="no-js is-layout-default has-navbar-fixed-top" lang="">
<head>
<meta charset="utf-8">
<!-- <title>Home | <%= htmlWebpackPlugin.options.TITLE %></title> -->
<title>Home | Cactus Boilerplate</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="">
-
var { options, files } = self.htmlWebpackPlugin
var { env, app, layout, page } = options
include _mixins
doctype
html(class="no-js has-navbar-fixed-top" lang=app.lang)
head
//- Set character encoding for the document (first)
/*! webpack | Webpack configuration */
import dotenv from 'dotenv'
import { resolve, basename } from 'path'
import { readFileSync } from 'fs'
import { sync } from 'glob'
import { dot } from 'dot-object'
import fmp from 'front-matter-pug'
import webpack from 'webpack'
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module',
ecmaVersion: 2018,
allowImportExportEverywhere: true
},
extends: [
'standard',
module.exports = {
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module',
ecmaVersion: 2020,
allowImportExportEverywhere: true
},
extends: [
'standard',
'plugin:node/recommended',