Webpack template with tailwind and now.sh

This commit is contained in:
2019-06-24 22:37:03 +01:00
parent 61bed7ccf4
commit fd99a131df
7 changed files with 70 additions and 3 deletions

View File

@@ -9,18 +9,24 @@
"start": "node __sapper__/build",
"cy:run": "cypress run",
"cy:open": "cypress open",
"test": "run-p --race dev cy:run"
"test": "run-p --race dev cy:run",
"now": "npm run build:tailwind && SAPPER_TIMESTAMP=$(date +%s%3N) sapper build && now -e SAPPER_TIMESTAMP=$(date +%s%3N)",
"watch:tailwind": "postcss static/tailwind.css -o static/index.css -w",
"build:tailwind": "NODE_ENV=production postcss static/tailwind.css -o static/index.css"
},
"dependencies": {
"compression": "^1.7.1",
"polka": "^0.5.0",
"sirv": "^0.4.0"
"sirv": "^0.4.0",
"tailwindcss": "^1.0.4",
"@fullhuman/postcss-purgecss": "^1.2.0"
},
"devDependencies": {
"npm-run-all": "^4.1.5",
"sapper": "^0.27.0",
"svelte": "^3.0.0",
"svelte-loader": "^2.9.0",
"webpack": "^4.7.0"
"webpack": "^4.7.0",
"postcss-cli": "^6.1.2"
}
}