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.
 
 
 
 
 

31 lines
553 B

const path = require('path');
module.exports = {
mode: 'production',
target: 'node',
node: {
__dirname: false,
__filename: false,
},
entry: [ './dist/server-dev.js' ],
output: {
filename: "server.js",
path: path.join(__dirname, '../dist')
},
module: {
rules: [
{
test: /\.js$/,
use: [
{ loader: 'babel-loader' }
]
},
{
test: /\.node$/,
use: [
{ loader: './build/node-loader' }
]
}
]
}
}