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

42 lines
818 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: '/'
},
plugins: [
// new UglifyJSPlugin()
],
module: {
loaders: [
{
test: /\.js$/,
// loaders: ['babel-loader'],
include: path.join(__dirname, 'src'),
exclude: [/fetcher/]
}, /*{ test: /\.json$/, loader: 'json-loader' }*/
{
test: /\.js$/,
include: [/fetcher/]
}
]
},
node: {
fs: 'empty',
net: 'empty',
tls: 'empty'
}
}