mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
add gitRevisionPugin to webpack.dev.local
This commit is contained in:
parent
12755bace0
commit
02f442c71b
@ -1,5 +1,6 @@
|
||||
import webpack from 'webpack';
|
||||
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
|
||||
import GitRevisionPlugin from 'git-revision-webpack-plugin';
|
||||
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
||||
import CopyWebpackPlugin from 'copy-webpack-plugin';
|
||||
import MiniCssExtractPlugin from '../../trezor-connect/node_modules/mini-css-extract-plugin';
|
||||
@ -15,6 +16,8 @@ import {
|
||||
PORT,
|
||||
} from './constants';
|
||||
|
||||
const gitRevisionPlugin = new GitRevisionPlugin();
|
||||
|
||||
module.exports = {
|
||||
watch: true,
|
||||
mode: 'development',
|
||||
@ -163,6 +166,7 @@ module.exports = {
|
||||
|
||||
new webpack.DefinePlugin({
|
||||
LOCAL: JSON.stringify(`http://localhost:${PORT}/`),
|
||||
COMMITHASH: JSON.stringify(gitRevisionPlugin.commithash()),
|
||||
}),
|
||||
|
||||
// ignore node lib from trezor-link
|
||||
|
Loading…
Reference in New Issue
Block a user