-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathwebpack.dev.config.js
More file actions
33 lines (29 loc) · 933 Bytes
/
webpack.dev.config.js
File metadata and controls
33 lines (29 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// @flow weak
/* eslint-disable import/no-unresolved */
const webpack = require('webpack');
const webpackBaseConfig = require('./webpackBaseConfig');
const path = require('path');
module.exports = Object.assign({}, webpackBaseConfig, {
cache: true,
devtool: 'source-map',
entry: webpackBaseConfig.entry,
output: {
path: path.join(__dirname, './target/'),
filename: 'eventum-ui.js',
library: 'EventumUI',
libraryTarget: "umd",
},
module: Object.assign({}, webpackBaseConfig.module, {
rules: webpackBaseConfig.module.rules.concat([{
test: /\.(jpg|gif|png)$/,
loader: 'file-loader',
}, ]),
}),
plugins: webpackBaseConfig.plugins.concat([
new webpack.optimize.UglifyJsPlugin({
sourceMap: false
}),
new webpack.HotModuleReplacementPlugin(),
new webpack.NamedModulesPlugin(),
]),
});