Skip to content

Commit 663dd5b

Browse files
committed
Use dev config
1 parent dd6e205 commit 663dd5b

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
],
2525
"scripts": {
2626
"build": "stencil build --docs",
27-
"start": "stencil build --dev --watch --serve",
27+
"start": "stencil build --dev --watch --serve --config stencil.config.dev.ts",
2828
"test": "stencil test --spec --e2e",
2929
"test.watch": "stencil test --spec --e2e --watchAll"
3030
},

stencil.config.dev.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { Config } from '@stencil/core';
2+
import builtins from '@joseph184/rollup-plugin-node-builtins';
3+
4+
export const config: Config = {
5+
namespace: 'microbit',
6+
commonjs: {
7+
namedExports: {
8+
'node_modules/microbit-web-bluetooth/lib/index.js': ['getServices', 'requestMicrobit']
9+
}
10+
},
11+
plugins: [
12+
builtins(),
13+
],
14+
outputTargets: [
15+
{ type: 'dist' },
16+
{ type: 'docs' },
17+
{
18+
type: 'www',
19+
serviceWorker: null
20+
}
21+
]
22+
};

stencil.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const config: Config = {
1616
{ type: 'docs' },
1717
{
1818
type: 'www',
19+
baseUrl: '/microbit-web-components/www/',
1920
serviceWorker: null
2021
}
2122
]

0 commit comments

Comments
 (0)