https://github.com/sgmap/mes-aides-ui
Tip revision: a78c9d08e6d00e428785af6e4ee2ffa846683604 authored by lucharrier on 26 March 2021, 10:20:55 UTC
Permettre la validation de l'écran échelon avec Entrée quand le focus est sur l'input
Permettre la validation de l'écran échelon avec Entrée quand le focus est sur l'input
Tip revision: a78c9d0
vue.config.js
const {matomo} = require('./backend/config')
const configureAPI = require('./configure')
const mock = require('./mock')
const webpack = require('webpack')
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
process.env.VUE_APP_MATOMO_ID = matomo.id
module.exports = {
configureWebpack: (config) => {
config.devtool = 'source-map'
config.plugins.push(
new webpack.ContextReplacementPlugin(/moment[\\/]locale$/, /^\.\/(fr)$/)
)
},
chainWebpack(config) {
config.module
.rule('vue')
.use('vue-loader')
.loader('vue-loader')
.tap(options => ({
...options,
compilerOptions: {
...options.compilerOptions,
whitespace: 'preserve',
},
}));
},
devServer: {
before: before
}
}