2017-09-14 01:45:31 +02:00
|
|
|
const getBaseConfig = require('./base.conf.js')
|
|
|
|
|
2018-07-03 00:49:33 +02:00
|
|
|
module.exports = function (config) {
|
2017-09-14 01:45:31 +02:00
|
|
|
const settings = getBaseConfig(config)
|
|
|
|
|
2017-09-14 01:52:38 +02:00
|
|
|
// ui and tests
|
|
|
|
settings.files.push('dist/mascara/ui.js')
|
|
|
|
settings.files.push('dist/mascara/tests.js')
|
|
|
|
// service worker background
|
2018-07-03 01:53:45 +02:00
|
|
|
settings.files.push({ pattern: 'dist/mascara/background.js', watched: false, included: false, served: true })
|
2017-09-14 01:52:38 +02:00
|
|
|
settings.proxies['/background.js'] = '/base/dist/mascara/background.js'
|
2017-09-14 01:45:31 +02:00
|
|
|
|
2017-09-14 05:25:27 +02:00
|
|
|
// use this to keep the browser open for debugging
|
|
|
|
settings.browserNoActivityTimeout = 10000000
|
|
|
|
|
2017-09-14 01:45:31 +02:00
|
|
|
config.set(settings)
|
|
|
|
}
|