This commit is contained in:
wushenghua
2017-06-19 08:43:31 +08:00
parent 6a48d33db7
commit feaba7a6cd
3 changed files with 11 additions and 27 deletions
+1 -25
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -32,9 +32,9 @@ var GoodsList = React.createClass({
// contentType: "appcation/json",
data: {
"command":"10001",
"root":"{\"pageSize\":200,\"page\":1}",
"root":"{\"pageSize\":1000,\"page\":1}",
"version":"1.1",
"sign":"7c6cca9bf9216c41c6986ee2cf510d79"
"sign":"7d75d22adacf36f4f664e9a80ebb4007"
},
headers: {
Accept:"text/plain, */*; q=0.01",
+8
View File
@@ -15,6 +15,14 @@ module.exports = {
'NODE_ENV': JSON.stringify('production')
}
}),
new webpack.optimize.UglifyJsPlugin({
output: {
comments: false,
},
compress: {
warnings: false
}
}),
new webpack.optimize.DedupePlugin(), //删除类似的重复代码
new webpack.optimize.UglifyJsPlugin(), //最小化一切
new webpack.optimize.AggressiveMergingPlugin()//合并块