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

30 lines
549 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'],
2019-01-10 21:51:14 +03:00
},
output: {
library: 'd3tooltip',
libraryTarget: 'umd',
path: path.resolve(__dirname, 'dist'),
filename: env.minimize ? 'd3tooltip.min.js' : 'd3tooltip.js',
2019-01-10 21:51:14 +03:00
},
module: {
rules: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
},
],
2019-01-10 21:51:14 +03:00
},
optimization: {
minimize: !!env.minimize,
2019-01-10 21:51:14 +03:00
},
performance: {
hints: false,
},
2019-01-10 21:51:14 +03:00
});