Skip to content

Commit

Permalink
fix: static is default again
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed May 28, 2022
1 parent 7e39c44 commit 93fa2a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions public/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Open editor at first.
<!-- sandpack:{
"files": {
"/src/index.js": {
"prependCode": "import './index.css'; // Hack to load index.css. require parcel env \n",
"appendCode": "// 次の行は本編とは無関係のコードなので無視してください\nconst link = document.createElement('link');link.rel='stylesheet';link.href='https://jsprimer.net/use-case/todoapp/final/final/index.css';document.head.append(link);\n",
"path": "example2/src/index.js"
},
"/src/App.js": {
Expand All @@ -51,8 +51,7 @@ Open editor at first.
"path": "example2/index.html"
}
},
"entry": "/index.html",
"environment": "parcel",
"environment": "static",
"options": {
"showLineNumbers": true,
"showInlineErrors": true,
Expand Down
2 changes: 1 addition & 1 deletion src/sandpack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const attachToElement = (element: HTMLElement | ChildNode, options: Sandb
entry: options.entry,
dependencies: options.dependencies,
devDependencies: options.devDependencies,
environment: options.environment ?? "parcel"
environment: options.environment ?? "static"
};
const entry = options.entry;
const sandpackOptions = options.options;
Expand Down

0 comments on commit 93fa2a2

Please sign in to comment.