mirror of
https://github.com/trezor/trezor-wallet
synced 2025-02-03 11:51:32 +00:00
webpack & build
This commit is contained in:
parent
df100cb060
commit
666dae47c2
1
build.sh
1
build.sh
@ -8,6 +8,7 @@ printf "\n-- COPYING FILES ----------------------\n"
|
|||||||
|
|
||||||
cd build
|
cd build
|
||||||
rsync -avz --delete -e ssh . admin@dev.sldev.cz:~/experiments/www
|
rsync -avz --delete -e ssh . admin@dev.sldev.cz:~/experiments/www
|
||||||
|
rsync -avz --delete -e ssh ./build/* admin@dev.sldev.cz:~/mytrezor/ethereum/www
|
||||||
cd ../
|
cd ../
|
||||||
|
|
||||||
printf "\n-- COMPLETE ---------------------------\n"
|
printf "\n-- COMPLETE ---------------------------\n"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { SRC, BUILD, TREZOR_LIBRARY, TREZOR_CONNECT_FILES, TREZOR_CONNECT_HTML } from './constants';
|
import { SRC, BUILD, TREZOR_CONNECT, TREZOR_CONNECT_FILES, TREZOR_CONNECT_HTML } from './constants';
|
||||||
import webpack from 'webpack';
|
import webpack from 'webpack';
|
||||||
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
||||||
import ExtractTextPlugin from 'extract-text-webpack-plugin';
|
import ExtractTextPlugin from 'extract-text-webpack-plugin';
|
||||||
@ -11,8 +11,7 @@ const extractLess = new ExtractTextPlugin({
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: {
|
entry: {
|
||||||
index: ['whatwg-fetch', `${SRC}js/index.js`],
|
index: ['whatwg-fetch', `${SRC}js/index.js`]
|
||||||
//'trezor-library': `${TREZOR_LIBRARY}.js`
|
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: 'js/[name].[hash].js',
|
filename: 'js/[name].[hash].js',
|
||||||
@ -78,7 +77,7 @@ module.exports = {
|
|||||||
resolve: {
|
resolve: {
|
||||||
modules: [SRC, 'node_modules'],
|
modules: [SRC, 'node_modules'],
|
||||||
alias: {
|
alias: {
|
||||||
'trezor-connect': `${TREZOR_LIBRARY}`,
|
'trezor-connect': `${TREZOR_CONNECT}`,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
performance: {
|
performance: {
|
||||||
@ -111,7 +110,8 @@ module.exports = {
|
|||||||
// }
|
// }
|
||||||
// }),
|
// }),
|
||||||
new CopyWebpackPlugin([
|
new CopyWebpackPlugin([
|
||||||
{ from: `${TREZOR_CONNECT_FILES}coins.json`, to: `${BUILD}/data/coins.json` },
|
{ from: `${TREZOR_CONNECT_FILES}config.json`, to: `${BUILD}/data/config.json` },
|
||||||
|
{ from: `${TREZOR_CONNECT_FILES}coins.json`, to: `${BUILD}/data/coins.json` },
|
||||||
{ from: `${TREZOR_CONNECT_FILES}releases-1.json`, to: `${BUILD}/data/releases-1.json` },
|
{ from: `${TREZOR_CONNECT_FILES}releases-1.json`, to: `${BUILD}/data/releases-1.json` },
|
||||||
{ from: `${TREZOR_CONNECT_FILES}releases-2.json`, to: `${BUILD}/data/releases-2.json` },
|
{ from: `${TREZOR_CONNECT_FILES}releases-2.json`, to: `${BUILD}/data/releases-2.json` },
|
||||||
{ from: `${TREZOR_CONNECT_FILES}latest.txt`, to: `${BUILD}/data/latest.txt` },
|
{ from: `${TREZOR_CONNECT_FILES}latest.txt`, to: `${BUILD}/data/latest.txt` },
|
||||||
|
Loading…
Reference in New Issue
Block a user