mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-11 20:27:07 +03:00
10bf7bc084
* chore(*): upgrade prettier * chore(*): upgrade prettier
30 lines
547 B
JavaScript
30 lines
547 B
JavaScript
const path = require('path');
|
|
|
|
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,
|
|
},
|
|
});
|