From 046ebba364640a680af8a1c00ba377a8d9844201 Mon Sep 17 00:00:00 2001
From: Romain Racamier
Date: Mon, 24 Jun 2019 17:23:59 +0200
Subject: [PATCH 1/2] inline assets
---
.vscode/settings.json | 1 +
package.json | 4 +++-
src/index.html | 5 +++--
src/register-sw.js | 1 +
src/styles/_base.css | 4 ++++
static/_headers | 2 +-
tests/check.js | 6 +++---
7 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 4204f95..c433fa5 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,6 +1,7 @@
{
"cSpell.words": [
"GTmetrix",
+ "nosniff",
"purgecss",
"sourcerer"
]
diff --git a/package.json b/package.json
index 94264e0..513b194 100644
--- a/package.json
+++ b/package.json
@@ -10,6 +10,7 @@
"http-server": "0.11.1",
"npm-run-all": "4.1.5",
"parcel-bundler": "1.12.3",
+ "parcel-plugin-inliner": "1.0.10",
"parcel-plugin-purgecss": "2.1.2",
"parcel-plugin-static-files-copy": "2.1.2",
"parcel-plugin-sw-precache": "1.1.1"
@@ -22,7 +23,6 @@
"src/",
"static/"
],
- "private": true,
"homepage": "https://github.com/Shuunen/folio#readme",
"keywords": [
"Romain Racamier-Lafon",
@@ -33,6 +33,7 @@
],
"license": "GPL-3.0",
"name": "folio",
+ "private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/Shuunen/folio.git"
@@ -42,6 +43,7 @@
"check": "npx repo-check",
"dev": "cross-var parcel src/index.html --port $npm_package_config_port",
"lint": "standard \"src/**/*.js\" \"tests/**/*.js\" --fix",
+ "postbuild": "npx rimraf dist/{*.css,main.*.js}",
"prebuild": "npx rimraf dist/*",
"prestart": "npm run build",
"serve": "cross-var http-server dist -p $npm_package_config_port",
diff --git a/src/index.html b/src/index.html
index e995b32..8487bca 100644
--- a/src/index.html
+++ b/src/index.html
@@ -30,7 +30,8 @@ Hey I'm Romain Racamier-Lafon
VueJS,
performance
and
- best practices.
+ best practices.
You can check my
@@ -39,7 +40,7 @@
Hey I'm Romain Racamier-Lafon
if you dare.
-
+