This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
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 #318 from PureStake/master
Patch 1.6.7
- Loading branch information
Showing
14 changed files
with
122 additions
and
95 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
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,45 +1,56 @@ | ||
var path = require('path'); | ||
const webpack = require('webpack'); | ||
|
||
function srcPath(subdir) { | ||
return path.join(__dirname, "./", subdir); | ||
return path.join(__dirname, './', subdir); | ||
} | ||
|
||
module.exports = { | ||
// Change to your "entry-point". | ||
mode: 'production', | ||
optimization: { | ||
// We no not want to minimize our code. | ||
minimize: false | ||
}, | ||
entry: { | ||
background: './src/background/index.ts', | ||
content: './src/content/content.ts' | ||
// Change to your "entry-point". | ||
mode: 'production', | ||
optimization: { | ||
// We no not want to minimize our code. | ||
minimize: false, | ||
}, | ||
entry: { | ||
background: './src/background/index.ts', | ||
content: './src/content/content.ts', | ||
}, | ||
output: { | ||
path: path.resolve(__dirname, 'dist'), | ||
filename: '[name].js', | ||
}, | ||
plugins: [ | ||
// Generate a base html file and injects all generated css and js files | ||
new webpack.ProvidePlugin({ | ||
Buffer: ['buffer', 'Buffer'], | ||
}), | ||
], | ||
resolve: { | ||
alias: { | ||
'@algosigner/common': srcPath('../common/src'), | ||
'@algosigner/crypto': srcPath('../crypto'), | ||
'@algosigner/storage': srcPath('../storage'), | ||
'@algosigner/ui': srcPath('../ui'), | ||
}, | ||
output: { | ||
path: path.resolve(__dirname, 'dist'), | ||
filename: '[name].js', | ||
extensions: ['.ts', '.tsx', '.js', '.json'], | ||
fallback: { | ||
buffer: require.resolve('buffer'), | ||
crypto: false, | ||
}, | ||
resolve: { | ||
alias: { | ||
'@algosigner/common': srcPath('../common/src'), | ||
'@algosigner/crypto': srcPath('../crypto'), | ||
'@algosigner/storage': srcPath('../storage'), | ||
'@algosigner/ui': srcPath('../ui') | ||
}, | ||
extensions: ['.ts', '.tsx', '.js', '.json'] | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.(ts|js)x?$/, | ||
exclude: /node_modules/, | ||
use: [ | ||
{ | ||
loader: "ts-loader", | ||
options: {} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.(ts|js)x?$/, | ||
exclude: /node_modules/, | ||
use: [ | ||
{ | ||
loader: 'ts-loader', | ||
options: {}, | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
}; |
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
Oops, something went wrong.