mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-14 12:04:39 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f1d2e0a04 | ||
|
|
dfb8692d78 | ||
|
|
09d3c4d85e |
@@ -1,5 +1,9 @@
|
|||||||
# sapper changelog
|
# sapper changelog
|
||||||
|
|
||||||
|
## 0.6.2
|
||||||
|
|
||||||
|
* Handle unspecified type in `sapper export`
|
||||||
|
|
||||||
## 0.6.1
|
## 0.6.1
|
||||||
|
|
||||||
* Fix `pkg.files` and `pkg.bin`
|
* Fix `pkg.files` and `pkg.bin`
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sapper",
|
"name": "sapper",
|
||||||
"version": "0.6.1",
|
"version": "0.6.2",
|
||||||
"description": "Military-grade apps, engineered by Svelte",
|
"description": "Military-grade apps, engineered by Svelte",
|
||||||
"main": "middleware.js",
|
"main": "middleware.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
@@ -66,7 +66,8 @@
|
|||||||
"test": "mocha --opts mocha.opts",
|
"test": "mocha --opts mocha.opts",
|
||||||
"pretest": "npm run build",
|
"pretest": "npm run build",
|
||||||
"build": "rollup -c",
|
"build": "rollup -c",
|
||||||
"dev": "rollup -cw"
|
"dev": "rollup -cw",
|
||||||
|
"prepublish": "npm test"
|
||||||
},
|
},
|
||||||
"repository": "https://github.com/sveltejs/sapper",
|
"repository": "https://github.com/sveltejs/sapper",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export default function exporter({ src, dest }) { // TODO dest is a terrible nam
|
|||||||
let dest = OUTPUT_DIR + pathname;
|
let dest = OUTPUT_DIR + pathname;
|
||||||
|
|
||||||
const type = res.headers.get('Content-Type');
|
const type = res.headers.get('Content-Type');
|
||||||
if (type.startsWith('text/html')) dest += '/index.html';
|
if (type && type.startsWith('text/html')) dest += '/index.html';
|
||||||
|
|
||||||
sander.writeFileSync(dest, body);
|
sander.writeFileSync(dest, body);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user