forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
39 lines (37 loc) · 1.08 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
'use strict';
const path = require('path');
const createWebpackConfig = require('local-web-rig/profiles/app/webpack-base.config');
module.exports = function createConfig(env, argv) {
return createWebpackConfig({
env: env,
argv: argv,
projectRoot: __dirname,
// Documentation: https://webpack.js.org/configuration/
configOverride: {
resolve: {
alias: {
// Don't rebundle this large library
'@rushstack/rush-themed-ui': '@rushstack/rush-themed-ui/dist/rush-themed-ui.js'
}
},
performance: {
hints: env.production ? 'error' : false
// This specifies the bundle size limit that will trigger Webpack's warning saying:
// "The following entrypoint(s) combined asset size exceeds the recommended limit."
// maxEntrypointSize: 500000,
// maxAssetSize: 500000
},
devServer: {
port: 8096,
static: {
directory: path.join(__dirname, 'dist')
},
client: {
webSocketURL: {
port: 8096
}
}
}
}
});
};