Revision bf997c452acb85eb386e101a8f5f345b2826f461 authored by Thomas Guillet on 11 January 2021, 17:07:04 UTC, committed by GitHub on 11 January 2021, 17:07:04 UTC
1 parent a00f94d
vue.config.js
const configureAPI = require('./configure')
const mock = require('./mock')
const before = process.env.NODE_ENV === 'front_only' ? mock : configureAPI
var { forEach } = require('./app/js/constants/benefits/back')
let count = 0
forEach(() => {
count = count + 1
})
process.env.VUE_APP_BENEFIT_COUNT = count
module.exports = {
configureWebpack: {
devtool: 'source-map'
},
chainWebpack(config) {
config.module
.rule('vue')
.use('vue-loader')
.loader('vue-loader')
.tap(options => ({
...options,
compilerOptions: {
...options.compilerOptions,
preserveWhitespace: true,
},
}));
},
devServer: {
before: before
}
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...