1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-09 22:45:01 +00:00
mon-entreprise/source/webpack.prod.legacyBrowser.js
2020-04-10 15:06:33 +02:00

30 lines
708 B
JavaScript

const { map } = require('ramda')
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
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 MonacoWebpackPlugin(),
new EnvironmentPlugin({
EN_SITE: '/infrance${path}',
FR_SITE: '/mon-entreprise${path}'
})
]
}