mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
Tweaked build system to allow serving both marvel and kibana content without building and without symlinks
31 lines
No EOL
723 B
JavaScript
31 lines
No EOL
723 B
JavaScript
module.exports = function (config) {
|
|
return {
|
|
// copy source to temp, we will minify in place for the dist build
|
|
dev_marvel_config: {
|
|
options: {
|
|
patterns: [
|
|
{
|
|
match: 'port',
|
|
replacement: '<%= esPort.dev %>',
|
|
}
|
|
]
|
|
},
|
|
files: [
|
|
{expand: true, flatten: true, src: ['./config.js'], dest: '<%= buildMergeDir %>'}
|
|
]
|
|
},
|
|
dist_marvel_config: {
|
|
options: {
|
|
patterns: [
|
|
{
|
|
match: 'port',
|
|
replacement: '<%= esPort.dist %>',
|
|
}
|
|
]
|
|
},
|
|
files: [
|
|
{expand: true, flatten: true, src: ['./config.js'], dest: '<%= buildMergeDir %>'}
|
|
]
|
|
}
|
|
};
|
|
}; |