Created
June 29, 2016 20:14
-
-
Save wenbochang/b1561d4a4c20faa4f854ab28112ce8c5 to your computer and use it in GitHub Desktop.
Revisions
-
wenbochang created this gist
Jun 29, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ var path = require('path'); var webpack = require('webpack'); module.exports = { entry: './src/main.js', output: { path: path.join(__dirname, 'build'), filename: 'bundle.js' }, devtool: 'cheap-module-source-map', module: { loaders: [ { test: path.join(__dirname, 'src'), loader: 'babel-loader' } ] }, plugins: [ new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } }) ] };