Skip to content

Commit 432c1d1

Browse files
authored
Merge pull request #11 from dysfunc/ssr
✨ enable ssr support
2 parents ae53a77 + c25eb38 commit 432c1d1

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

docs/public/global.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ html {
44
}
55

66
body {
7-
position: relative;
8-
margin: 0;
9-
/* padding: 8px; */
107
box-sizing: border-box;
11-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,
12-
'Helvetica Neue', sans-serif;
8+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,'Helvetica Neue', sans-serif;
9+
margin: 0;
10+
position: relative;
1311
}
1412

1513
html,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@svelte-plugins/viewable",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"license": "MIT",
55
"description": "A simple rule-based approach to tracking element viewability.",
66
"author": "Kieran Boyle (https://github.com/dysfunc)",

rollup.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ export default () => {
2424
svelte({
2525
compilerOptions: {
2626
dev: !production,
27+
generate: 'ssr',
2728
cssHash({ hash, css, name, filename }) {
2829
return `viewable-${hash(css)}`;
2930
}
3031
},
31-
emitCss: false,
32+
emitCss: false
3233
}),
3334
babel({
3435
"extensions": [".js", ".mjs", ".html", ".svelte"],

0 commit comments

Comments
 (0)