[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:
spalger 2016-08-19 17:12:42 -07:00
parent 4051bfad7e
commit 51ea45cd37
2 changed files with 3 additions and 1 deletions

3
.gitignore vendored
View file

@ -5,7 +5,8 @@
.node_binaries
node_modules
trash
bundles
/optimize/bundles
/optimize/testdev
target
/build
.jruby

View file

@ -110,6 +110,7 @@ module.exports = function (grunt) {
'--server.port=5610',
'--optimize.lazyPort=5611',
'--optimize.lazyPrebuild=true',
'--optimize.bundleDir=optimize/testdev',
...kbnServerFlags,
]
},