lbry-redux/webpack.config.js

27 lines
583 B
JavaScript
Raw Normal View History

2018-04-05 18:54:58 +02:00
/* eslint-disable import/no-commonjs */
2018-01-11 12:54:20 +01:00
const path = require('path');
2018-04-05 18:54:58 +02:00
const FlowBabelWebpackPlugin = require('flow-babel-webpack-plugin');
2018-01-11 12:54:20 +01:00
module.exports = {
2018-04-05 18:54:58 +02:00
mode: 'none',
2018-01-11 12:54:20 +01:00
entry: './src/index.js',
output: {
2018-04-05 18:54:58 +02:00
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
libraryTarget: 'umd'
2018-01-11 12:54:20 +01:00
},
module: {
rules: [
{
test: /\.js$/,
2018-04-05 18:54:58 +02:00
exclude: /node_modules/,
loader: 'babel-loader',
},
],
2018-01-11 12:54:20 +01:00
},
resolve: {
2018-04-05 18:54:58 +02:00
modules: [path.resolve(__dirname, 'src'), 'node_modules'],
2018-01-11 12:54:20 +01:00
},
2018-04-05 18:54:58 +02:00
plugins: [new FlowBabelWebpackPlugin()],
2018-01-11 12:54:20 +01:00
};