Skip to content

Commit 25b1da0

Browse files
Removes production plugins
1 parent e6dd2e3 commit 25b1da0

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

package/environments/production.js

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@ module.exports = class extends Environment {
66
constructor() {
77
super()
88

9-
this.plugins.append('ModuleConcatenation', new webpack.optimize.ModuleConcatenationPlugin())
10-
11-
this.plugins.append('UglifyJs', new webpack.optimize.UglifyJsPlugin({
12-
sourceMap: true,
13-
mangle: {
14-
safari10: true
15-
},
16-
compress: {
17-
warnings: false,
18-
comparisons: false
19-
},
20-
output: {
21-
comments: false,
22-
ascii_only: true
23-
}
24-
}))
25-
26-
this.plugins.append('Compression', new CompressionPlugin({
27-
asset: '[path].gz[query]',
28-
algorithm: 'gzip',
29-
test: /\.(js|css|html|json|ico|svg|eot|otf|ttf)$/
30-
}))
31-
32-
this.config.merge({
33-
devtool: 'nosources-source-map',
34-
stats: 'normal'
35-
})
9+
// this.plugins.append('ModuleConcatenation', new webpack.optimize.ModuleConcatenationPlugin())
10+
//
11+
// this.plugins.append('UglifyJs', new webpack.optimize.UglifyJsPlugin({
12+
// sourceMap: true,
13+
// mangle: {
14+
// safari10: true
15+
// },
16+
// compress: {
17+
// warnings: false,
18+
// comparisons: false
19+
// },
20+
// output: {
21+
// comments: false,
22+
// ascii_only: true
23+
// }
24+
// }))
25+
//
26+
// this.plugins.append('Compression', new CompressionPlugin({
27+
// asset: '[path].gz[query]',
28+
// algorithm: 'gzip',
29+
// test: /\.(js|css|html|json|ico|svg|eot|otf|ttf)$/
30+
// }))
31+
//
32+
// this.config.merge({
33+
// devtool: 'nosources-source-map',
34+
// stats: 'normal'
35+
// })
3636
}
3737
}

0 commit comments

Comments
 (0)