This repository has been archived on 2023-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
intergalactic/webpack.config.js

43 lines
803 B
JavaScript

'use strict'
var path = require('path')
var webpack = require('webpack')
//const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
devtool: 'source-map',
entry: {
'bundle': './src/index',
'fetcher': './src/fetcher'
},
output: {
path: path.join(__dirname, 'dist'),
filename: '[name].js',
sourceMapFilename: '[name].js.map',
publicPath: '/ipfs/'
},
plugins: [
// new UglifyJSPlugin()
],
module: {
loaders: [
{
test: /\.js$/,
include: path.join(__dirname, 'src'),
exclude: [/fetcher/],
loader: "babel-loader"
},
{
test: /\.js$/,
include: [/fetcher/],
loader: "babel-loader"
}
]
},
node: {
fs: 'empty',
net: 'empty',
tls: 'empty'
}
}