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

30 lines
541 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 ? 'd3tooltip.min.js' : 'd3tooltip.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
});