-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathlynx.config.ts
More file actions
32 lines (30 loc) · 947 Bytes
/
Copy pathlynx.config.ts
File metadata and controls
32 lines (30 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig } from '@lynx-js/rspeedy';
import { pluginVueLynx } from 'vue-lynx/plugin';
const exampleName = path.basename(path.dirname(fileURLToPath(import.meta.url)));
export default defineConfig({
environments: {
web: {},
lynx: {},
},
source: {
entry: {
'background-draggable': './src/background-draggable/index.ts',
'main-thread-draggable': './src/main-thread-draggable/index.ts',
'main-thread-draggable-raw': './src/main-thread-draggable-raw/index.ts',
'cross-thread-calls': './src/cross-thread-calls/index.ts',
'shared-module': './src/shared-module/index.ts',
},
},
plugins: [
pluginVueLynx({
optionsApi: false,
enableCSSSelector: true,
}),
],
output: {
filename: '[name].[platform].bundle',
assetPrefix: `https://vue.lynxjs.org/examples/${exampleName}/dist/`,
},
});