Skip to content

Commit 8a49400

Browse files
author
vikasrohit
authored
Merge pull request #2816 from appirio-tech/dev
Production Release - Connect 2.4.9
2 parents 0a4e5c1 + dd8c226 commit 8a49400

File tree

123 files changed

+9213
-1716
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+9213
-1716
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
- persist_to_workspace:
3535
root: .
3636
paths:
37-
- dist
38-
37+
- dist
38+
3939
# Just tests commited code.
4040
deployDev:
4141
docker:
@@ -88,7 +88,7 @@ jobs:
8888
- attach_workspace:
8989
at: ./workspace
9090
- run: ./deploy.sh DISCOURSE
91-
91+
9292

9393
workflows:
9494
version: 2
@@ -100,7 +100,7 @@ workflows:
100100
- test
101101
filters:
102102
branches:
103-
only: ['dev', 'dev-msinteg']
103+
only: ['dev', 'dev-msinteg', 'feature/attachmentPermissions']
104104
- deployTest02:
105105
requires:
106106
- test

config/constants/dev.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,4 @@ module.exports = {
4848
TC_SYSTEM_USERID: process.env.DEV_TC_SYSTEM_USERID,
4949
MAINTENANCE_MODE: process.env.DEV_MAINTENANCE_MODE,
5050

51-
RESET_PASSWORD_URL: 'https://accounts.topcoder-dev.com/connect/reset-password'
5251
}

config/constants/master.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,4 @@ module.exports = {
4848
TC_SYSTEM_USERID: process.env.PROD_TC_SYSTEM_USERID,
4949
MAINTENANCE_MODE: process.env.PROD_MAINTENANCE_MODE,
5050

51-
RESET_PASSWORD_URL: 'https://accounts.topcoder.com/connect/reset-password'
5251
}

config/webpack/development.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,12 @@ combinedConfig.plugins.splice(hotReloadPluginIndex, 1)
4242
/*
4343
Remove 'webpack-hot-middleware/client?reload=true' as we use webpack-dev-server, not middleware
4444
*/
45-
combinedConfig.entry.main = combinedConfig.entry.main.filter((entry) => (
46-
entry !== 'webpack-hot-middleware/client?reload=true'
47-
))
45+
// NOTE: looks like after some minor dependency version update, combined config doesn't keep `main` property anymore
46+
if (combinedConfig.entry.main) {
47+
combinedConfig.entry.main = combinedConfig.entry.main.filter((entry) => (
48+
entry !== 'webpack-hot-middleware/client?reload=true'
49+
))
50+
}
4851

4952
/*
5053
Remove ExtractTextPlugin, because we want hot reload when editing styles

config/webpack/production.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
const path = require('path')
55
const webpackMerge = require('webpack-merge')
66
const CompressionPlugin = require('compression-webpack-plugin')
7+
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
78

89
const dirname = path.resolve(__dirname, '../..')
910

@@ -52,5 +53,10 @@ combinedConfig.plugins.push(
5253
minRatio: 0.8
5354
})
5455
)
56+
combinedConfig.plugins = combinedConfig.plugins.map((plugin) => {
57+
// console.log(/UglifyJsPlugin/.test(plugin.constructor.toString()))
58+
if (/UglifyJsPlugin/.test(plugin.constructor.toString())) return new UglifyJsPlugin()
59+
return plugin
60+
})
5561

5662
module.exports = combinedConfig

0 commit comments

Comments
 (0)