A reactive data-store for web3 and smart contracts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
745 B

4 years ago
const path = require('path')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
process.env.BABEL_ENV = 'production'
module.exports = {
devtool: 'inline-source-map',
entry: './src/index.js',
output: {
filename: 'drizzle-store.js',
library: '@drizzle/store',
libraryTarget: 'umd',
globalObject: "typeof self !== 'undefined' ? self : this",
path: path.resolve(__dirname, '../dist')
},
module: {
rules: [{
test: /\.(js)$/,
include: path.resolve(__dirname, '../src'),
loader: 'babel-loader'
}]
},
plugins: [
new BundleAnalyzerPlugin({
analyzerMode: 'disabled',
generateStatsFile: true,
statsOptions: { source: false }
})
]
}