-
Notifications
You must be signed in to change notification settings - Fork 16
/
config.js
44 lines (44 loc) · 1.21 KB
/
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
44
module.exports = () => ({
browserSyncConfig: {
ghostMode: true,
https: true,
logConnections: true,
logLevel: 'debug',
logPrefix: 'Redline Tool',
open: true,
port: 3100,
proxyRP8: 'https://tqap6c.axshare.com',
proxyRP9: 'https://98t4tt.axshare.com',
reloadDebounce: 250,
reloadDelay: 50,
reloadOnRestart: true,
serveStatic: ['dist'],
snippetOptions: {
rule: {
fn: (snippet, match) => `<script src="plugin.js"></script>${snippet}${match}`,
match: /<\/head>/i
}
},
ui: {
port: 3101
}
},
buildTypes: {
development: 'development',
production: 'production'
},
bundleName: 'plugin',
directories: {
distDirectory: './dist',
legacyWebDirectory: './web',
rootDirectory: './',
srcDirectory: './src',
tasksDirectory: './tasks'
},
environmentalVariables: {
buildEnvironment: 'BUILD_ENVIRONMENT',
injectedEnvironment: 'INJECTED_ENVIRONMENT'
},
legacyBundleName: 'axure-redline-plugin',
webpackConfig: '../webpack.config.js'
});