Skip to content

Commit

Permalink
windows patch webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
delphiactual committed Dec 30, 2016
1 parent 69dd6d1 commit 333d21d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
// const CleanWebpackPlugin = require('clean-webpack-plugin');

module.exports = (options = {}) => {
module.exports = (options) => {
const config = {
entry: './app/index.js',

Expand Down Expand Up @@ -68,7 +68,7 @@ module.exports = (options = {}) => {
},
};

if (options.prod) {
if (options && options.prod) {
config.plugins.push(new webpack.optimize.UglifyJsPlugin({
mangle: false,
compress: false
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"style-loader": "^0.13.1",
"uglify-js": "^2.7.0",
"unzip": "^0.1.11",
"webpack": "^2.2.0-rc.3"
"webpack": "^2.1.0-beta.19"
},
"dependencies": {
"angular": "^1.6.1",
Expand Down

0 comments on commit 333d21d

Please sign in to comment.