redux-devtools/packages/map2tree/webpack.config.umd.js

30 lines
539 B
JavaScript
Raw Normal View History

2019-01-09 03:06:21 +03:00
const path = require('path');
2019-01-10 21:51:14 +03:00
module.exports = (env = {}) => ({
mode: 'production',
entry: {
app: ['./src/index.js']
},
output: {
library: 'd3tooltip',
libraryTarget: 'umd',
path: path.resolve(__dirname, 'dist'),
filename: env.minimize ? 'map2tree.min.js' : 'map2tree.js'
},
module: {
rules: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/
}
]
},
optimization: {
minimize: !!env.minimize
},
performance: {
hints: false
2019-01-09 03:06:21 +03:00
}
2019-01-10 21:51:14 +03:00
});