forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
28 lines (23 loc) · 813 Bytes
/
webpack.config.js
File metadata and controls
28 lines (23 loc) · 813 Bytes
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
'use strict';
const createWebpackConfig = require('local-web-rig/profiles/library/webpack-base.config');
module.exports = function createConfig(env, argv) {
return createWebpackConfig({
env: env,
argv: argv,
projectRoot: __dirname,
// Documentation: https://webpack.js.org/configuration/
configOverride: {
entry: {
['rush-themed-ui']: `${__dirname}/lib-esm/index.js`
},
externals: ['react', 'react-dom', 'tslib'],
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
}
}
});
};