mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-19 21:15:21 +00:00
Webpack template with tailwind and now.sh
This commit is contained in:
33
now.json
Normal file
33
now.json
Normal 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" }
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user