UNPKG

react-chips-devitjobs

Version:

A flexible and easy to use Chips component for React

33 lines (31 loc) 673 B
var path = require('path'); var webpack = require('webpack'); module.exports = { devtool: 'cheap-module-source-map', entry: './site/src/index.js', output: { path: path.join(__dirname, 'site'), filename: 'bundle.js', }, plugins: [ new webpack.optimize.OccurenceOrderPlugin(), new webpack.NoErrorsPlugin(), new webpack.DefinePlugin({ 'process.env':{ 'NODE_ENV': JSON.stringify('production') } }), new webpack.optimize.UglifyJsPlugin({ compress:{ warnings: false } }) ], module: { loaders: [{ test: /\.js?$/, loaders: ['babel'], exclude: /node_modules/ }] } };