UNPKG

react-style-guide

Version:

A component to display React components with their JSX source in style guides

38 lines (36 loc) 762 B
var path = require('path'); var webpack = require('webpack'); module.exports = { cache: true, entry: { app: "./example/app.jsx" }, output: { path: path.join(__dirname), publicPath: '/', filename: '[name].js', chunkFilename: '[chunkhash].js' }, module: { loaders: [ { test: /\.js$/, loader: 'jsx-loader?harmony' }, { test: /\.jsx$/, loader: 'jsx-loader?insertPragma=React.DOM&harmony' } ] }, plugins: [ new webpack.optimize.DedupePlugin(), new webpack.optimize.UglifyJsPlugin(), new webpack.DefinePlugin({ "process.env": { // Signal production mode for React JS libs. NODE_ENV: JSON.stringify("production") } }) ] }