1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 17:28:10 +00:00
trezor-wallet/webpack/webpack.config.library.js

23 lines
598 B
JavaScript
Raw Normal View History

2017-12-13 11:01:37 +00:00
import { TREZOR_LIBRARY } from './constants';
import path from 'path';
import webpack from 'webpack';
import webpackMerge from 'webpack-merge';
import baseConfig from './webpack.config.dev';
module.exports = webpackMerge(baseConfig, {
entry: {
'trezor-library': `${TREZOR_LIBRARY}.js`
},
resolve: {
alias: {
'trezor-connect': `${TREZOR_LIBRARY}`,
}
},
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('development-library'),
PRODUCTION: JSON.stringify(false)
})
]
} );