kibana/tasks/options/replace.js
Boaz Leskes 31ba5de2df Moved plugin to a subfolder
Tweaked build system to allow serving both marvel and kibana content without building and without symlinks
2013-11-18 22:14:38 +01:00

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 %>'}
]
}
};
};