Files: 49c6e5459b68f2a30bcecf7727b8c9a99cfe4e79 / modules / assets.js
708 bytesRaw
1 | const { join } = require('path') |
2 | const assets = require('vas-assets') |
3 | |
4 | module.exports = { |
5 | config: { |
6 | gives: { |
7 | config: { |
8 | vas: { |
9 | assets: { |
10 | entryFile: true, |
11 | js: true |
12 | } |
13 | } |
14 | } |
15 | }, |
16 | create: () => ({ |
17 | config: { |
18 | vas: { |
19 | assets: { |
20 | entryFile: () => join(__dirname, '../browserEntry.js'), |
21 | js: () => ({ |
22 | transform: [ |
23 | ['evalify', { files: ['**/service.js', '**/services/*.js'] } ], |
24 | ['bulkify', { vars: { dirname: undefined, process } } ], |
25 | 'es2040' |
26 | ] |
27 | }) |
28 | } |
29 | } |
30 | } |
31 | }) |
32 | }, |
33 | assets |
34 | } |
35 |
Built with git-ssb-web