-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcraco.config.js
24 lines (24 loc) · 890 Bytes
/
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
module.exports = {
webpack: {
configure: (webpackConfig, {env, paths}) => {
return {
...webpackConfig,
entry: {
main: [env === 'development' &&
require.resolve('react-dev-utils/webpackHotDevClient'),paths.appIndexJs].filter(Boolean),
shiki_content: './src/chromeServices/shiki_content.ts',
anime365_content: './src/chromeServices/anime365_content.ts',
background: './src/background/background.ts',
},
output: {
...webpackConfig.output,
filename: 'static/js/[name].js',
},
optimization: {
...webpackConfig.optimization,
runtimeChunk: false,
}
}
},
}
}