UNPKG

swagdoc

Version:
34 lines (32 loc) 776 B
/* eslint no-var: 0 */ var path = require('path'); var webpack = require('webpack'); // In webpack.config.js module.exports = { devtool: 'source-map', entry: path.resolve(__dirname, 'src', 'app.js'), plugins: [ new webpack.optimize.OccurenceOrderPlugin(), new webpack.DefinePlugin({ 'process.env': { 'NODE_ENV': JSON.stringify('production'), }, '__DEVTOOLS__': false, }), new webpack.optimize.UglifyJsPlugin({ compressor: { warnings: false, }, }), ], module: { loaders: [ { test: /\.js$/, loader: 'babel', exclude: /(node_modules|bower_components)/, }, ], }, output: {filename: 'react-bundle.js', path: path.join(__dirname,'dist', 'static','js')}, };