Skip to content

Commit be1588e

Browse files
committed
build: trying with node resolve
1 parent 766d876 commit be1588e

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

apps/lit/dev/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="utf-8">
66
<title>Lit tsParticles Demo</title>
7-
<script type="module" src="../node_modules/lit-tsparticles/lib/lit-tsparticles.js"></script>
7+
<script type="module" src="../lib/index.js"></script>
88
<style>
99
p {
1010
border: solid 1px blue;

apps/lit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"lint": "lit-analyzer && eslint 'src/**/*.ts'",
1212
"format": "prettier src/* --write",
1313
"analyze": "wca analyze \"src/**/*.ts\" --outFile custom-elements.json",
14-
"serve": "es-dev-server --app-index dev/index.html --node-resolve --watch --open",
14+
"serve": "es-dev-server",
1515
"checksize": "rollup -c ; cat my-element.bundled.js | gzip -9 | wc -c ; rm my-element.bundled.js"
1616
},
1717
"keywords": [

apps/lit/web-dev-server.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default {
2+
open: true,
3+
watch: true,
4+
nodeResolve: true,
5+
appIndex: 'demo/index.html',
6+
// in a monorepo you need to set the root dir to resolve modules
7+
rootDir: '../../',
8+
};

0 commit comments

Comments
 (0)