-
-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #362 from ryohey/fix-signin-with-apple
Fix signin with apple
- Loading branch information
Showing
20 changed files
with
253 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
const path = require("path") | ||
const HtmlWebpackPlugin = require("html-webpack-plugin") | ||
const webpack = require("webpack") | ||
const Dotenv = require("dotenv-webpack") | ||
|
||
module.exports = { | ||
context: __dirname, | ||
entry: { | ||
browserMain: "./src/index.tsx", | ||
}, | ||
output: { | ||
filename: "[name]-[chunkhash].js", | ||
clean: true, | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.(png|jpg|jpeg|gif|woff|woff2|eot|ttf)$/, | ||
loader: "url-loader", | ||
}, | ||
], | ||
}, | ||
resolve: { | ||
extensions: [".js", ".jsx", ".ts", ".tsx"], | ||
}, | ||
plugins: [ | ||
new Dotenv({ | ||
path: path.join(__dirname, "../.env"), | ||
systemvars: true, | ||
}), | ||
new HtmlWebpackPlugin({ | ||
inject: true, | ||
filename: "edit.html", | ||
chunks: ["browserMain"], | ||
template: path.join(__dirname, "public", "edit.html"), | ||
}), | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
const { merge } = require("webpack-merge") | ||
const common = require("./webpack.common.js") | ||
const path = require("path") | ||
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin") | ||
const ReactRefreshWebpackPlugin = require("@pmmmwh/react-refresh-webpack-plugin") | ||
|
||
module.exports = merge(common, { | ||
mode: "development", | ||
devtool: "inline-source-map", | ||
devServer: { | ||
port: 3000, | ||
hot: "only", | ||
static: { | ||
directory: path.resolve(__dirname, "public"), | ||
watch: true, | ||
}, | ||
client: { | ||
overlay: { | ||
warnings: false, | ||
errors: true, | ||
}, | ||
}, | ||
historyApiFallback: { | ||
rewrites: [{ from: /^\/edit$/, to: "/edit.html" }], | ||
}, | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.(j|t)sx?$/, | ||
exclude: /node_modules/, | ||
use: { | ||
loader: "babel-loader", | ||
options: { | ||
plugins: [require.resolve("react-refresh/babel")], | ||
}, | ||
}, | ||
}, | ||
{ | ||
test: /\.js$/, | ||
enforce: "pre", | ||
use: ["source-map-loader"], | ||
}, | ||
], | ||
}, | ||
plugins: [ | ||
new ForkTsCheckerWebpackPlugin(), | ||
new ReactRefreshWebpackPlugin({ | ||
exclude: [/node_modules/], | ||
}), | ||
], | ||
resolve: { | ||
alias: { | ||
// Prevent to load local package's react https://github.com/facebook/react/issues/13991#issuecomment-435587809 | ||
react: path.resolve("../node_modules/react"), | ||
}, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
const { merge } = require("webpack-merge") | ||
const common = require("./webpack.common.js") | ||
const CopyPlugin = require("copy-webpack-plugin") | ||
const { sentryWebpackPlugin } = require("@sentry/webpack-plugin") | ||
const WorkboxPlugin = require("workbox-webpack-plugin") | ||
|
||
module.exports = merge(common, { | ||
mode: "production", | ||
optimization: { | ||
concatenateModules: false, | ||
splitChunks: { | ||
chunks: "all", | ||
}, | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.(j|t)sx?$/, | ||
exclude: /node_modules/, | ||
use: { | ||
loader: "babel-loader", | ||
}, | ||
}, | ||
], | ||
}, | ||
plugins: [ | ||
new CopyPlugin({ | ||
patterns: [ | ||
{ from: "public/*.svg", to: "[name][ext]" }, | ||
{ from: "public/*.png", to: "[name][ext]" }, | ||
{ from: "public/*.webmanifest", to: "[name][ext]" }, | ||
], | ||
}), | ||
], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.