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
Raw Normal View History

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