@ -0,0 +1,6 @@ | |||||
node_modules | |||||
build | |||||
*.DS_Store | |||||
Thumbs.db | |||||
.idea | |||||
*.log |
@ -0,0 +1 @@ | |||||
<!doctype html><html lang="de"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Lessons Learned / Start</title><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon"><link rel="stylesheet" href="/css/styles.css"><script src="/js/index.js" defer="defer"></script></head><body><header class="site-header"><div class="container"><div class="grid"><div class="col-12"><h1>Lessons Learned / Start</h1></div></div></div></header><main class="site-main"><div class="container"><div class="grid"><div class="col-12"><p><a href="page-1.html">Page 1</a></p></div></div></div></main><footer class="site-footer"><div class="container"><div class="grid"><div class="col-12"></div></div></div></footer></body></html> |
@ -0,0 +1 @@ | |||||
<!doctype html><html lang="de"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Lessons Learned / Page 1</title><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon"><link rel="stylesheet" href="/css/styles.css"><script src="/js/index.js" defer="defer"></script></head><body><header class="site-header"><div class="container"><div class="grid"><div class="col-12"><h1>Lessons Learned / Page 1</h1></div></div></div></header><main class="site-main"><div class="container"><div class="grid"><div class="col-12"><p><a href="page-2.html">Page 2</a></p></div></div></div></main><footer class="site-footer"><div class="container"><div class="grid"><div class="col-12"></div></div></div></footer></body></html> |
@ -0,0 +1 @@ | |||||
<!doctype html><html lang="de"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Lessons Learned / 2</title><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon"><link rel="stylesheet" href="/css/styles.css"><script src="/js/index.js" defer="defer"></script></head><body><header class="site-header"><div class="container"><div class="grid"><div class="col-12"><h1>Lessons Learned / 2</h1></div></div></div></header><main class="site-main"><div class="container"><div class="grid"><div class="col-12"><p><a href="index.html">Start</a></p></div></div></div></main><footer class="site-footer"><div class="container"><div class="grid"><div class="col-12"></div></div></div></footer></body></html> |
@ -0,0 +1 @@ | |||||
<!doctype html><html lang="de"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Subpage 1</title><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon"><link rel="stylesheet" href="/css/styles.css"><script src="/js/index.js" defer="defer"></script></head><body><header class="header"><div class="container"><div class="grid"><div class="col-12"><h1>Subpage 1</h1></div></div></div></header><main class="main"><div class="container"><div class="grid"><div class="col-12"><p><a href="subpage-2.html">Subpage 2</a></p></div></div></div></main><footer class="footer"><div class="container"><div class="grid"><div class="col-12"></div></div></div></footer></body></html> |
@ -0,0 +1 @@ | |||||
<!doctype html><html lang="de"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Subpage 2</title><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon"><link rel="stylesheet" href="/css/styles.css"><script src="/js/index.js" defer="defer"></script></head><body><header class="header"><div class="container"><div class="grid"><div class="col-12"><h1>Subpage 2</h1></div></div></div></header><main class="main"><div class="container"><div class="grid"><div class="col-12"><p><a href="index.html">index</a></p></div></div></div></main><footer class="footer"><div class="container"><div class="grid"><div class="col-12"></div></div></div></footer></body></html> |
@ -0,0 +1,4 @@ | |||||
{ | |||||
"/dist/js/index.js": "/dist/js/index.js", | |||||
"/dist/css/styles.css": "/dist/css/styles.css" | |||||
} |
@ -0,0 +1,27 @@ | |||||
{ | |||||
"private": true, | |||||
"scripts": { | |||||
"dev": "npm run development", | |||||
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | |||||
"watch": "npm run development -- --watch", | |||||
"watch-poll": "npm run watch -- --watch-poll", | |||||
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", | |||||
"prod": "npm run production", | |||||
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" | |||||
}, | |||||
"dependencies": { | |||||
"crispy-css": "^3.0.0", | |||||
"reflex-grid": "^2.0.4", | |||||
"turbolinks": "^5.2.0" | |||||
}, | |||||
"devDependencies": { | |||||
"@riotjs/webpack-loader": "^4.0.3", | |||||
"cross-env": "^7.0.2", | |||||
"html-webpack-plugin": "^4.3.0", | |||||
"laravel-mix": "^5.0.4", | |||||
"resolve-url-loader": "^3.1.0", | |||||
"sass": "^1.26.8", | |||||
"sass-loader": "^8.0.2", | |||||
"vue-template-compiler": "^2.6.11" | |||||
} | |||||
} |
@ -0,0 +1,54 @@ | |||||
<!DOCTYPE html> | |||||
<html lang="de"> | |||||
<head> | |||||
<meta charset="utf-8"> | |||||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |||||
<title><%= htmlWebpackPlugin.options.title %></title> | |||||
<meta name="description" content=""> | |||||
<meta name="viewport" content="width=device-width, initial-scale=1"> | |||||
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon"> | |||||
<link rel="stylesheet" href="/css/styles.css"> | |||||
<script src="/js/index.js" defer></script> | |||||
</head> | |||||
<body> | |||||
<header class="site-header"> | |||||
<div class="container"> | |||||
<div class="grid"> | |||||
<div class="col-12"> | |||||
<h1> | |||||
<%= htmlWebpackPlugin.options.title %> | |||||
</h1> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</header> | |||||
<main class="site-main"> | |||||
<div class="container"> | |||||
<div class="grid"> | |||||
<div class="col-12"> | |||||
<p> | |||||
<%= htmlWebpackPlugin.options.content %> | |||||
</p> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</main> | |||||
<footer class="site-footer"> | |||||
<div class="container"> | |||||
<div class="grid"> | |||||
<div class="col-12"> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</footer> | |||||
</body> | |||||
</html> |
@ -0,0 +1,4 @@ | |||||
const Turbolinks = require('turbolinks') | |||||
Turbolinks.start() | |||||
Turbolinks.setProgressBarDelay(500) |
@ -0,0 +1,9 @@ | |||||
@import | |||||
'../../node_modules/reflex-grid/scss/reflex', | |||||
'../../node_modules/crispy-css/src/crispy-all'; | |||||
.turbolinks-progress-bar { | |||||
width: 5px; | |||||
height: 100%; | |||||
background-color: blue; | |||||
} |
@ -0,0 +1,50 @@ | |||||
const mix = require('laravel-mix'); | |||||
const HtmlWebpackPlugin = require('html-webpack-plugin') | |||||
/* | |||||
|-------------------------------------------------------------------------- | |||||
| Mix Asset Management | |||||
|-------------------------------------------------------------------------- | |||||
| | |||||
| Mix provides a clean, fluent API for defining some Webpack build steps | |||||
| for your Laravel application. By default, we are compiling the Sass | |||||
| file for the application as well as bundling up all the JS files. | |||||
| | |||||
*/ | |||||
mix.options({ | |||||
terser: { | |||||
extractComments: false | |||||
} | |||||
}) | |||||
mix.webpackConfig({ | |||||
plugins: [ | |||||
new HtmlWebpackPlugin({ | |||||
filename: 'dist/index.html', | |||||
template: 'src/html/index.html.ejs', | |||||
inject: false, | |||||
title: 'Lessons Learned / Start', | |||||
content: '<a href="page-1.html">Page 1</a>', | |||||
}), | |||||
new HtmlWebpackPlugin({ | |||||
filename: 'dist/page-1.html', | |||||
template: 'src/html/index.html.ejs', | |||||
inject: false, | |||||
title: 'Lessons Learned / Page 1', | |||||
content: '<a href="page-2.html">Page 2</a>', | |||||
}), | |||||
new HtmlWebpackPlugin({ | |||||
filename: 'dist/page-2.html', | |||||
template: 'src/html/index.html.ejs', | |||||
inject: false, | |||||
title: 'Lessons Learned / 2', | |||||
content: '<a href="index.html">Start</a>', | |||||
}) | |||||
] | |||||
}) | |||||
mix | |||||
.js('src/js/index.js', 'dist/js') | |||||
.sass('src/scss/styles.scss', 'dist/css'); |