lbryinc/webpack.config.js
Akinwale Ariwodola 0cca6c1811
[WIP] lbryio internal API calls and rewards component (#1)
* lbryinc base code containing lbryio.js
* added rewards and user actions, reducers and selectors
2018-07-23 14:12:18 +01:00

26 lines
583 B
JavaScript

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