Revision aeb68f04192602e33da789c5110c2867bfe96c1e authored by Thomas Guillet on 13 August 2020, 10:10:45 UTC, committed by GitHub on 13 August 2020, 10:10:45 UTC
2 parent s 2e0fc95 + 212f370
Raw File
vue.config.js
const configureAPI = require('./configure')
const mock = require('./mock')
const before = process.env.NODE_ENV === 'front_only' ? mock : configureAPI

process.env.VUE_APP_BENEFIT_COUNT = 112

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
  }
}
back to top