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

23 lines
512 B
JavaScript

const path = require('path')
const {
default: common,
commonLoaders,
styleLoader
} = require('./webpack.common')
module.exports = {
resolve: common.resolve,
entry: './source/engine/index.js',
mode: 'development',
devtool: 'source-map',
output: {
path: path.resolve('./dist/'),
filename: 'engine.js',
library: 'Syso',
libraryTarget: 'umd',
globalObject: "(typeof window !== 'undefined' ? window : this)"
},
module: {
rules: [...commonLoaders(), styleLoader('isomorphic-style-loader')]
}
}