UNPKG

react-livr-validation

Version:

react validation component with LIVR as validation engine

52 lines (50 loc) 1.17 kB
const webpack = require('webpack'), path = require('path'); module.exports = { context: __dirname, entry: './app/index.js', output: { path: path.join(__dirname, 'dist'), filename: 'bundle.js', libraryTarget: 'umd', library: 'react-livr-validation', publicPath: '/dist/' }, module: { rules: [ { test: /\.js$/, exclude: [/node_modules/], use: 'babel-loader' } ] }, plugins: [ new webpack.DefinePlugin({ 'process.env': { NODE_ENV: JSON.stringify('production') } }) ], resolve: { modules: [ 'node_modules', path.join(__dirname, 'app') ], extensions: ['.js'] }, externals: { react: { commonjs: 'react', commonjs2: 'react', amd: 'react', root: 'React' }, 'react-dom': { commonjs: 'react-dom', commonjs2: 'react-dom', amd: 'react-dom', root: 'ReactDom' } } };