This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// webpack.dev.js - developmental builds | |
const LEGACY_CONFIG = 'legacy'; | |
const MODERN_CONFIG = 'modern'; | |
// node modules | |
const merge = require('webpack-merge'); | |
const path = require('path'); | |
const webpack = require('webpack'); | |
// webpack plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// webpack.common.js - common webpack config | |
const LEGACY_CONFIG = 'legacy'; | |
const MODERN_CONFIG = 'modern'; | |
// node modules | |
const path = require('path'); | |
const merge = require('webpack-merge'); | |
// webpack plugins | |
const CopyWebpackPlugin = require('copy-webpack-plugin'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// webpack.common.js - common webpack config | |
const LEGACY_CONFIG = 'legacy'; | |
const MODERN_CONFIG = 'modern'; | |
// node modules | |
const path = require('path'); | |
const merge = require('webpack-merge'); | |
// webpack plugins | |
const CopyWebpackPlugin = require('copy-webpack-plugin'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// webpack.settings.js - webpack settings config | |
// node modules | |
require('dotenv').config(); | |
const Terser = require('terser'); | |
const Postcss = require('postcss'); | |
const Cssnano = require('cssnano'); | |
// Webpack settings exports | |
// noinspection WebpackConfigHighlighting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// webpack.prod.js - production builds | |
const LEGACY_CONFIG = 'legacy'; | |
const MODERN_CONFIG = 'modern'; | |
// node modules | |
const git = require('git-rev-sync'); | |
const glob = require('glob-all'); | |
const merge = require('webpack-merge'); | |
const moment = require('moment'); | |
const path = require('path'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import our CSS | |
import styles from '../css/app.scss'; | |
// because webpack generated code does not go through babel | |
import 'core-js/modules/es.promise'; | |
import 'core-js/modules/es.array.iterator'; | |
import objectFitImages from 'object-fit-images'; | |
// App main | |
const main = async () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function getCookie(name) { | |
var value = "; " + document.cookie; | |
var parts = value.split("; " + name + "="); | |
if (parts.length === 2) return parts.pop().split(";").shift(); | |
} | |
// Get klaro cookie | |
var klaroCurrent; | |
var klaroCookie; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# | |
a-input | |
Codepen: https://codepen.io/davidhellmann/pen/OOLmYq | |
------------------------------------------------------------ | |
#} | |
{# -- Set Defaults -- #} | |
{% set defaults = { | |
cn: 'a-input', | |
modifiers: [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% include '_forms/input/_template.twig' with { | |
opt: { | |
type: 'text', | |
name: field.handle, | |
label: field.label, | |
value: field.value, | |
maxlength: field.maxLength, | |
required: field.required, | |
id: 'input' ~ field.id, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# @var craft \craft\web\twig\variables\CraftVariable #} | |
{# @var entry \craft\elements\Entry #} | |
{# | |
Description of what this file is for | |
@package baukasten | |
@author Sarah Schütz [sarah@fredmansky.at] | |
o-freeform | |
------------------------------------------------------------ |