Skip to content

Commit d3a123f

Browse files
committed
revert: fix ads
1 parent d4f1d98 commit d3a123f

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

build/docs/webpack.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -101,25 +101,25 @@ const webpackConfig = {
101101
new webpack.optimize.UglifyJsPlugin({
102102
minimize: true,
103103
compress: {
104-
screw_ie8: true,
105-
warnings: false,
106-
sequences: true,
107-
properties: true,
104+
booleans: true,
105+
cascade: true,
106+
comparisons: true,
107+
conditionals: true,
108108
dead_code: true,
109109
drop_debugger: true,
110-
unsafe: true,
111-
conditionals: true,
112-
comparisons: true,
113110
evaluate: true,
114-
booleans: true,
115-
loops: true,
116-
unused: true,
117111
hoist_funs: true,
118112
hoist_vars: true,
119113
if_return: true,
120114
join_vars: true,
121-
cascade: true,
122-
side_effects: true
115+
loops: true,
116+
properties: true,
117+
screw_ie8: true,
118+
sequences: true,
119+
side_effects: true,
120+
unsafe: true,
121+
unused: true,
122+
warnings: false
123123
},
124124
output: {
125125
comments: false
@@ -152,23 +152,23 @@ const webpackConfig = {
152152
chunksSortMode: 'dependency',
153153
inject: 'head',
154154
minify: {
155-
html5: true,
156-
useShortDoctype: true,
155+
collapseBooleanAttributes: true,
156+
collapseWhitespace: true,
157157
decodeEntities: true,
158-
removeTagWhitespace: true,
159-
removeStyleLinkTypeAttributes: true,
160-
removeScriptTypeAttributes: true,
158+
html5: true,
161159
minifyCSS: true,
162160
minifyJS: true,
163-
removeComments: true,
164-
collapseWhitespace: true,
165-
collapseBooleanAttributes: true,
161+
preserveLineBreaks: false,
166162
removeAttributeQuotes: false,
167-
removeRedundantAttributes: true,
163+
removeComments: false,
168164
removeEmptyAttributes: true,
169-
preserveLineBreaks: false,
165+
removeRedundantAttributes: true,
166+
removeScriptTypeAttributes: true,
167+
removeStyleLinkTypeAttributes: true,
168+
removeTagWhitespace: true,
170169
sortAttributes: true,
171-
sortClassName: true
170+
sortClassName: true,
171+
useShortDoctype: true
172172
}
173173
}),
174174
new PreloadWebpackPlugin(),

0 commit comments

Comments
 (0)