UNPKG

react-google-login

Version:
42 lines (39 loc) 827 B
'use strict'; const path = require('path'); const webpack = require('webpack'); module.exports = { devtool: 'cheap-module-source-map', entry: [ './src/index.js' ], output: { path: path.join(__dirname, 'dist'), filename: 'google-login.js', libraryTarget: 'umd', library: 'GoogleLogin', }, module: { loaders: [{ test: /\.js$/, loader: 'babel', exclude: /node_modules/, }] }, externals: { 'react': 'react', 'react-dom': 'ReactDOM', }, resolve: { extensions: ['', '.js'], }, plugins: [ new webpack.DefinePlugin({ 'process.env': { 'NODE_ENV': JSON.stringify('production') } }), new webpack.optimize.UglifyJsPlugin(), new webpack.optimize.DedupePlugin(), new webpack.optimize.OccurrenceOrderPlugin(), ], };