-
Notifications
You must be signed in to change notification settings - Fork 15
/
webpack.config.js
43 lines (37 loc) · 1.17 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
40
41
42
43
const createExpoWebpackConfigAsync = require("@expo/webpack-config");
// const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
module.exports = async function (env, argv) {
const config = await createExpoWebpackConfigAsync(
{
...env,
// Passing true will enable the default Workbox + Expo SW configuration.
// offline: true,
babel: {
dangerouslyAddModulePathsToTranspile: ['@ui-kitten/components', "nativewind"]
}
},
argv
);
// Customize the config before returning it.
// if (env.mode === 'production') {
// config.plugins.push(
// new BundleAnalyzerPlugin({
// path: 'web-report',
// })
// );
// }
config.module.rules.push({
test: /\.css$/i,
use: ["postcss-loader"],
});
return config;
};
// module.exports = async function(env, argv) {
// const config = await createExpoWebpackConfigAsync({
// ...env,
// babel: {
// dangerouslyAddModulePathsToTranspile: ['@ui-kitten/components']
// }
// }, argv);
// return config;
// };