UNPKG

react-mdlite

Version:

React wrappers for Material Design Lite (MDL) components

37 lines (35 loc) 714 B
var webpack = require('webpack'); module.exports = { entry: './src/index', module: { loaders: [ { test: /\.js$/, loader: 'babel', exclude: /node_modules/ } ] }, externals: [{ react: { root: 'React', commonjs2: 'react', commonjs: 'react', amd: 'react' } }], output: { filename: 'dist/ReactMdLite.min.js', libraryTarget: 'umd', library: 'ReactMdLite' }, plugins: [ new webpack.optimize.OccurenceOrderPlugin(), new webpack.DefinePlugin({ 'process.env': { 'NODE_ENV': JSON.stringify('production') } }), new webpack.optimize.UglifyJsPlugin({ compressor: { warnings: false } }) ] };