oneuptime/Dashboard/webpack.config.js
2022-05-22 09:49:16 +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',
}