diff options
author | Ajay Ramachandran <[email protected]> | 2020-02-04 01:32:58 -0500 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2020-02-04 01:32:58 -0500 |
commit | 09a33c4252242f5184522af9973940c5a4954431 (patch) | |
tree | 8a2f284b55b871ae02d0f3a59f09eef43f20abfa /webpack/webpack.prod.js | |
parent | da364b49f01f4af913319f83d4adeef8a9312132 (diff) | |
download | SponsorBlock-09a33c4252242f5184522af9973940c5a4954431.tar.gz SponsorBlock-09a33c4252242f5184522af9973940c5a4954431.zip |
Added manifest building.
Diffstat (limited to 'webpack/webpack.prod.js')
-rw-r--r-- | webpack/webpack.prod.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/webpack/webpack.prod.js b/webpack/webpack.prod.js index daa65f51..65be616f 100644 --- a/webpack/webpack.prod.js +++ b/webpack/webpack.prod.js @@ -1,6 +1,11 @@ const merge = require('webpack-merge'); const common = require('./webpack.common.js'); -module.exports = merge(common, { - mode: 'production' -});
\ No newline at end of file +module.exports = env => { + let mode = "production"; + env.mode = mode; + + return merge(common(env), { + mode + }); +};
\ No newline at end of file |