mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-22 22:05:21 +02:00
Replace webpack-dev-middleware with our own improved version.
This commit is contained in:
@@ -45,6 +45,13 @@ module.exports = function(options) {
|
||||
io.set('browser client', false)
|
||||
io.set('transports', ['websocket'])
|
||||
|
||||
if (!options.disableWatch) {
|
||||
app.use('/static/build', webpack({
|
||||
debug: true
|
||||
, devtool: 'eval'
|
||||
}))
|
||||
}
|
||||
|
||||
app.use('/static/bower_components',
|
||||
express.static(pathutil.resource('bower_components')))
|
||||
app.use('/static/data', express.static(pathutil.resource('data')))
|
||||
@@ -54,10 +61,6 @@ module.exports = function(options) {
|
||||
app.use(express.favicon(pathutil.resource(
|
||||
'bower_components/stf-graphics/logo/exports/STF-128.png')))
|
||||
|
||||
if (!options.disableWatch) {
|
||||
app.use(webpack)
|
||||
}
|
||||
|
||||
app.use(express.cookieParser(options.secret))
|
||||
app.use(express.cookieSession({
|
||||
key: options.ssid
|
||||
|
||||
Reference in New Issue
Block a user