-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathversacompile.config.ts
More file actions
47 lines (46 loc) · 1.31 KB
/
Copy pathversacompile.config.ts
File metadata and controls
47 lines (46 loc) · 1.31 KB
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
44
45
46
47
// Archivo de configuración de VersaCompiler
const config = {
tsconfig: './tsconfig.json',
compilerOptions: {
sourceRoot: './src',
outDir: './public',
pathsAlias: {
'@/*': ['src/*'],
'P@/*': ['public/*'],
},
},
proxyConfig: {
proxyUrl: 'http://localhost:8000',
assetsOmit: true,
},
aditionalWatch: ['./app/templates/**/*.twig', './app/templates/**/*.html'],
// puede dejar en false o no agregarlo si no quiere que se ejecute el compilador de tailwind
tailwindConfig: {
bin: './node_modules/.bin/tailwindcss',
input: './src/dashboard/css/dashboard.css',
output: './public/dashboard/css/dashboard.css',
},
linter: [
{
name: 'oxlint',
bin: './node_modules/.bin/oxlint',
configFile: './.oxlintrc.json',
fix: true,
paths: ['src/'],
},
],
// Configuración de bundlers
bundlers: [
{
name: 'appLoader',
fileInput: './public/module/appLoader.js',
fileOutput: './public/module/appLoader.prod.js',
},
{
name: 'mainApp',
fileInput: './src/main.ts',
fileOutput: './dist/main.bundle.js',
},
],
};
export default config;