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

33
now.json Normal file
View File

@@ -0,0 +1,33 @@
{
"name": "template",
"version": 2,
"builds": [
{
"src": "__sapper__/build/index.js",
"use": "@now/node-server",
"config": {
"includeFiles": [
"build.json",
"../../package.json",
"../build/**",
"../../static/**",
"../../node_modules/**"
],
"maxLambdaSize": "15mb"
}
},
{
"src": "static/**",
"use": "@now/static"
},
{
"src": "__sapper__/build/client/**",
"use": "@now/static"
}
],
"routes": [
{ "src": "/(.*(\\.css)|(\\.json)|(\\.png))", "dest": "/static/$1" },
{ "src": "/client/(.*)", "dest": "/__sapper__/build/client/$1" },
{ "src": "/(.*)", "dest": "/__sapper__/build/index.js" }
]
}