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
<?php | |
// Get real path for our folder | |
$rootPath = realpath('./folderToZip'); | |
// Initialize archive object | |
$zip = new ZipArchive(); | |
$zip->open('file.zip', ZipArchive::CREATE | ZipArchive::OVERWRITE); | |
// Create recursive directory iterator | |
/** @var SplFileInfo[] $files */ |
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
let mix = require('laravel-mix'); | |
//Requerimos Tailwind | |
const tailwindcss = require('tailwindcss'); | |
//If we use sass we will need the purgecss wrapper of Laravel-mix | |
require('laravel-mix-purgecss'); | |
// This opcion avoids to generate the file "app.js.LICENSE.txt" when is executed "npm run prod" | |
mix.options({ |
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
let mix = require('laravel-mix'); | |
const tailwindcss = require('tailwindcss'); | |
//If we don't use sass we will not need the purgecss wrapper of Laravel-mix | |
//Instead we use the original postCSS plugin. | |
const purgecss = require('@fullhuman/postcss-purgecss')({ | |
// Specify the paths to all of the template files in your project | |
content: [ | |
'./src/**/*.html', |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Timeline | Group example, with an arrow</title> | |
<style> | |
body, | |
html { | |
font-family: arial, sans-serif; | |
font-size: 11pt; |