1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-08 22:15:02 +00:00
mon-entreprise/source/webpack.prod.legacyBrowser.js
2019-07-08 11:40:21 +02:00

27 lines
610 B
JavaScript

const { map } = require('ramda')
const prod = require('./webpack.prod.js')
const {
commonLoaders,
styleLoader,
HTMLPlugins
} = require('./webpack.common.js')
const { EnvironmentPlugin } = require('webpack')
module.exports = {
...prod,
entry: map(entry => ['whatwg-fetch', entry], prod.entry),
output: {
filename: '[name].legacy.bundle.js'
},
module: {
rules: [...commonLoaders({ legacy: true }), styleLoader('style-loader')]
},
plugins: [
...HTMLPlugins({ injectTrackingScript: true }),
new EnvironmentPlugin({
EN_SITE: '/infrance${path}',
FR_SITE: '/mon-entreprise${path}'
})
]
}