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.
33 lines
601 B
33 lines
601 B
'use strict';
|
|
|
|
module.exports = {
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
include: [
|
|
/\/mongoose\//i,
|
|
/\/kareem\//i
|
|
],
|
|
loader: 'babel-loader',
|
|
options: {
|
|
presets: ['es2015']
|
|
}
|
|
}
|
|
]
|
|
},
|
|
node: {
|
|
// Replace these Node.js native modules with empty objects, Mongoose's
|
|
// browser library does not use them.
|
|
// See https://webpack.js.org/configuration/node/
|
|
dns: 'empty',
|
|
fs: 'empty',
|
|
module: 'empty',
|
|
net: 'empty',
|
|
tls: 'empty'
|
|
},
|
|
target: 'web',
|
|
mode: 'production'
|
|
};
|
|
|
|
|
|
|