oneuptime/Accounts/webpack.config.js
2022-05-17 22:24:11 +01:00

39 lines
923 B
JavaScript

const path = require("path");
const webpack = require("webpack");
module.exports = {
entry: "./src/Index.tsx",
mode: "development",
output: {
filename: "bundle.js",
path: path.resolve("dist"),
publicPath: "/",
},
resolve: {
extensions: ['.ts', '.tsx', '.js', '.json', '.css', '.scss']
},
externals: {
'react-native-sqlite-storage': 'react-native-sqlite-storage'
},
module: {
rules: [
{
test: /\.(ts|tsx)$/,
use: 'ts-loader'
},
{
test: /\.s[ac]ss$/i,
use: ['style-loader', 'css-loader', "sass-loader"]
},
{
test: /\.(png|j?g|svg|gif)?$/,
use: 'file-loader'
}
],
},
devServer: {
historyApiFallback: true,
},
devtool: 'inline-source-map',
}