-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30e06b3
commit 7f87b5d
Showing
7 changed files
with
156 additions
and
550 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
engine-strict = true |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,6 +94,7 @@ | |
}, | ||
"engines": { | ||
"node": ">=14.17.0", | ||
"npm": "~6.x" | ||
"npm": "~6.x", | ||
"yarn": "please use npm" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,44 +1,46 @@ | ||
const path = require("path"); | ||
const pkg = require("./package.json"); | ||
const { ProvidePlugin } = require("webpack"); | ||
const {ProvidePlugin} = require("webpack"); | ||
|
||
const p = require('path'); | ||
module.exports = { | ||
pages: { | ||
index: { | ||
entry: path.join("src", "main.ts"), | ||
title: pkg.app.name, | ||
pages: { | ||
index: { | ||
entry: path.join("src", "main.ts"), | ||
title: pkg.app.name, | ||
}, | ||
}, | ||
}, | ||
configureWebpack: (config) => { | ||
config.resolve.fallback = { | ||
crypto: require.resolve("crypto-browserify"), | ||
stream: require.resolve("stream-browserify"), | ||
assert: require.resolve("assert"), | ||
os: require.resolve("os-browserify/browser"), | ||
https: require.resolve("https-browserify"), | ||
http: require.resolve("stream-http"), | ||
}; | ||
config.plugins.push(new ProvidePlugin({ Buffer: ["buffer", "Buffer"] })); | ||
config.plugins.push(new ProvidePlugin({ process: ["process/browser"] })); | ||
}, | ||
pwa: { | ||
name: "Solana Wallet", | ||
themeColor: "#70a3ff", | ||
msTileColor: "#000000", | ||
appleMobileWebAppCapable: "yes", | ||
appleMobileWebAppStatusBarStyle: "black", | ||
iconPaths: { | ||
faviconSVG: "img/icons/favicon.svg", | ||
favicon32: "img/icons/favicon-32x32.png", | ||
favicon16: "img/icons/favicon-16x16.png", | ||
appleTouchIcon: "img/icons/apple-touch-icon-152x152.png", | ||
maskIcon: "img/icons/safari-pinned-tab.svg", | ||
msTileImage: "img/icons/msapplication-icon-144x144.png", | ||
configureWebpack: (config) => { | ||
config.resolve.fallback = { | ||
...config.resolve.fallback, | ||
crypto: require.resolve("crypto-browserify"), | ||
stream: require.resolve("stream-browserify"), | ||
assert: require.resolve("assert"), | ||
os: require.resolve("os-browserify/browser"), | ||
https: require.resolve("https-browserify"), | ||
http: require.resolve("stream-http"), | ||
}; | ||
config.resolve.alias = { | ||
...config.resolve.alias, | ||
'bn.js': p.join(__dirname, 'node_modules/bn.js/lib/bn.js'), // used as peer dep multiple times, duplicate present in bundle | ||
} | ||
config.plugins.push(new ProvidePlugin({Buffer: ["buffer", "Buffer"]})); | ||
config.plugins.push(new ProvidePlugin({process: ["process/browser"]})); | ||
}, | ||
pwa: { | ||
name: "Solana Wallet", | ||
themeColor: "#70a3ff", | ||
msTileColor: "#000000", | ||
appleMobileWebAppCapable: "yes", | ||
appleMobileWebAppStatusBarStyle: "black", | ||
iconPaths: { | ||
faviconSVG: "img/icons/favicon.svg", | ||
favicon32: "img/icons/favicon-32x32.png", | ||
favicon16: "img/icons/favicon-16x16.png", | ||
appleTouchIcon: "img/icons/apple-touch-icon-152x152.png", | ||
maskIcon: "img/icons/safari-pinned-tab.svg", | ||
msTileImage: "img/icons/msapplication-icon-144x144.png", | ||
}, | ||
}, | ||
}, | ||
pluginOptions: { | ||
webpackBundleAnalyzer: { | ||
openAnalyzer: false, | ||
analyzerMode: "disabled", | ||
}, | ||
}, | ||
productionSourceMap: false | ||
}; |