2018-01-10 21:48:10 +01:00
|
|
|
const
|
|
|
|
path = require('path'),
|
|
|
|
webpack = require('webpack');
|
|
|
|
|
|
|
|
const jsLoader = {
|
|
|
|
test: /\.(js|jsx)$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
loader: 'babel-loader',
|
|
|
|
query: {
|
2018-01-11 00:46:05 +01:00
|
|
|
// presets: ['es2015', 'react']
|
2018-01-10 21:48:10 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: './src/index.js',
|
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, 'dist'),
|
|
|
|
filename: 'betterdiscord.client.js'
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
loaders: [jsLoader]
|
2018-01-11 00:46:05 +01:00
|
|
|
},
|
2018-01-11 15:12:24 +01:00
|
|
|
externals: {
|
|
|
|
'electron': 'window.require("electron")'
|
|
|
|
}
|
2018-01-11 00:46:05 +01:00
|
|
|
/* resolve: {
|
|
|
|
alias: {
|
|
|
|
'momentjs': 'vendor/moment.min.js'
|
|
|
|
},
|
|
|
|
modules: [
|
|
|
|
path.resolve('./node_modules'),
|
|
|
|
path.resolve(__dirname, '..'),
|
|
|
|
path.resolve(__dirname, '..', 'node_modules')
|
|
|
|
]
|
|
|
|
}*/
|
2018-01-10 21:48:10 +01:00
|
|
|
};
|