mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
39 lines
923 B
JavaScript
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',
|
|
|
|
} |