bcvwallet-jssdk
Version:
JSSDK for bitcvWallet app
37 lines (35 loc) • 820 B
JavaScript
const path = require('path');
const webpack = require('webpack')
const packageInfo = require('../package')
module.exports = {
mode: 'production',
entry: './src/index.js',
output: {
path: path.resolve(__dirname, '../dist'),
filename: 'bcvwallet.min.js',
library: 'bcvWallet',
libraryTarget: 'umd',
globalObject: 'this' // fixed (webpack default as 'window')
},
module: {
rules: [
{
enforce: "pre",
test: /\.js$/,
exclude: /node_modules/,
loader: "eslint-loader",
options: {}
},
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader'
}
}
]
},
plugins: [
new webpack.BannerPlugin(`${packageInfo.name} v${packageInfo.version}`)
]
};