mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[dev] write test:dev optimize output to its own dir
Currently, `npm start` and `npm run test:dev` use the same webpack "working directory". This allows them to share assets, which seems great, but when webpack writes it's record-keeping files to disk it can lead to difficult to debug "Property call of undefined is not a function" errors. By writing it's optimization output to a different directory we prevent those collisions so that both the test server and the dev server can be run side-by-side
This commit is contained in:
parent
4051bfad7e
commit
51ea45cd37
2 changed files with 3 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -5,7 +5,8 @@
|
|||
.node_binaries
|
||||
node_modules
|
||||
trash
|
||||
bundles
|
||||
/optimize/bundles
|
||||
/optimize/testdev
|
||||
target
|
||||
/build
|
||||
.jruby
|
||||
|
|
|
@ -110,6 +110,7 @@ module.exports = function (grunt) {
|
|||
'--server.port=5610',
|
||||
'--optimize.lazyPort=5611',
|
||||
'--optimize.lazyPrebuild=true',
|
||||
'--optimize.bundleDir=optimize/testdev',
|
||||
...kbnServerFlags,
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue