1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-10 01:05:02 +00:00
mon-entreprise/mon-entreprise/webpack.prod.legacyBrowser.js

31 lines
730 B
JavaScript
Raw Normal View History

const { map } = require('ramda')
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
const prod = require('./webpack.prod')
const { commonLoaders, styleLoader } = require('../webpack/common')
2019-07-08 11:13:51 +02:00
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: [
new MonacoWebpackPlugin(),
new EnvironmentPlugin({
GITHUB_REF: '',
GITHUB_HEAD_REF: '',
GITHUB_SHA: ''
}),
new EnvironmentPlugin({
EN_SITE: '/infrance${path}',
FR_SITE: '/mon-entreprise${path}'
})
]
}