UNPKG

@axetroy/react-download

Version:

[![Greenkeeper badge](https://badges.greenkeeper.io/axetroy/react-download.svg)](https://greenkeeper.io/)

35 lines (33 loc) 752 B
const path = require('path'); const webpack = require('webpack'); const CopyWebpackPlugin = require('copy-webpack-plugin'); module.exports = { entry: path.join(__dirname, 'example', 'src', 'index.jsx'), output: { filename: 'bundle.js', path: path.join(__dirname, 'docs') }, module: { loaders: [ { test: /\.jsx$/, loader: 'babel-loader', include: [path.join(__dirname, 'example')] } ] }, plugins: [ new CopyWebpackPlugin([ { from: path.join(__dirname, 'example', 'index.html'), to: path.join(__dirname, 'docs') } ]), new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false, drop_console: false } }) ] };