Skip to content

Commit

Permalink
Don't generate aframe-master.min.js.LICENSE.txt file (fix aframevr#5192
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin authored Dec 27, 2022
1 parent dae429f commit 2086991
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion webpack.prod.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var path = require('path');
var merge = require('webpack-merge').merge;
var commonConfiguration = require('./webpack.config.js');
var TerserPlugin = require('terser-webpack-plugin');

module.exports = merge(commonConfiguration, {
output: {
Expand All @@ -10,5 +11,21 @@ module.exports = merge(commonConfiguration, {
publicPath: '/dist/',
filename: 'aframe-master.min.js'
},
mode: 'production'
mode: 'production',
optimization: {
minimize: true,
minimizer: [
new TerserPlugin({
terserOptions: {
compress: {
passes: 2
},
format: {
comments: false
}
},
extractComments: false
})
]
}
});

0 comments on commit 2086991

Please sign in to comment.