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.
29 lines
535 B
29 lines
535 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' } |
|
] |
|
} |
|
] |
|
} |
|
}
|
|
|