mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-12-02 06:23:53 +03:00
24 lines
489 B
JavaScript
24 lines
489 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = (env = {}) => ({
|
|
mode: env.production ? 'production' : 'development',
|
|
entry: {
|
|
app: ['./src/index.js'],
|
|
},
|
|
output: {
|
|
library: 'd3tooltip',
|
|
libraryTarget: 'umd',
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: env.production ? 'map2tree.min.js' : 'map2tree.js',
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
loader: 'babel-loader',
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
});
|