generated from chialab/bedita-app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrna.config.js
43 lines (40 loc) · 1.7 KB
/
rna.config.js
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
33
34
35
36
37
38
39
40
41
42
43
import process from 'node:process';
const isProduction = process.env.NODE_ENV === 'production';
/**
* @type {import('@chialab/rna-config-loader').Config}
*/
const config = {
entrypoints: [
{
input: ['./plugins/Chialab/resources/index.ts', './plugins/Chialab/resources/index.css'],
publicPath: '/chialab/build/',
output: 'plugins/Chialab/webroot/build/',
manifestPath: 'plugins/Chialab/webroot/build/manifest.json',
entrypointsPath: 'plugins/Chialab/webroot/build/entrypoints.json',
},
{
input: ['./plugins/Illustratorium/resources/index.ts', './plugins/Illustratorium/resources/index.css'],
publicPath: '/illustratorium/build/',
output: 'plugins/Illustratorium/webroot/build/',
manifestPath: 'plugins/Illustratorium/webroot/build/manifest.json',
entrypointsPath: 'plugins/Illustratorium/webroot/build/entrypoints.json',
},
{
input: ['./plugins/OpenSource/resources/index.ts', './plugins/OpenSource/resources/index.css'],
publicPath: '/open_source/build/',
output: 'plugins/OpenSource/webroot/build/',
manifestPath: 'plugins/OpenSource/webroot/build/manifest.json',
entrypointsPath: 'plugins/OpenSource/webroot/build/entrypoints.json',
},
],
clean: true,
sourcemap: !isProduction,
entryNames: isProduction ? '[name]-[hash]' : '[name]',
chunkNames: isProduction ? '[name]-[hash]' : '[name]',
assetNames: isProduction ? '[name]-[hash]' : '[name]',
minify: isProduction,
bundle: isProduction,
jsx: 'automatic',
jsxImportSource: '@chialab/dna',
};
export default config;