Skip to content

Commit

Permalink
Merge pull request #11 from dysfunc/ssr
Browse files Browse the repository at this point in the history
✨ enable ssr support
  • Loading branch information
dysfunc authored Apr 1, 2021
2 parents ae53a77 + c25eb38 commit 432c1d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
8 changes: 3 additions & 5 deletions docs/public/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ html {
}

body {
position: relative;
margin: 0;
/* padding: 8px; */
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,
'Helvetica Neue', sans-serif;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,'Helvetica Neue', sans-serif;
margin: 0;
position: relative;
}

html,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@svelte-plugins/viewable",
"version": "0.1.2",
"version": "0.1.3",
"license": "MIT",
"description": "A simple rule-based approach to tracking element viewability.",
"author": "Kieran Boyle (https://github.com/dysfunc)",
Expand Down
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ export default () => {
svelte({
compilerOptions: {
dev: !production,
generate: 'ssr',
cssHash({ hash, css, name, filename }) {
return `viewable-${hash(css)}`;
}
},
emitCss: false,
emitCss: false
}),
babel({
"extensions": [".js", ".mjs", ".html", ".svelte"],
Expand Down

0 comments on commit 432c1d1

Please sign in to comment.