-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcraco.config.js
28 lines (28 loc) · 1.03 KB
/
craco.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
module.exports = {
webpack: {
configure: (webpackConfig, {env, paths}) => {
return {
...webpackConfig,
entry: {
main: [env === 'development' &&
require.resolve('react-dev-utils/webpackHotDevClient'),paths.appIndexJs].filter(Boolean),
content_script: './src/content_script.js',
window_hook: './src/window_hook.js',
background_script: './src/background_script.js',
dialog: './src/dialog.js',
Login: './src/Login.js',
amplify_config: './src/amplify_config.js',
options: './src/options.js'
},
output: {
...webpackConfig.output,
filename: 'static/js/[name].js',
},
optimization: {
...webpackConfig.optimization,
runtimeChunk: false,
}
}
},
}
}