jonyrock-back
5 years ago
committed by
GitHub
8 changed files with 47 additions and 52 deletions
@ -1,9 +0,0 @@
|
||||
{ |
||||
"presets": [ |
||||
["env", { |
||||
"targets": { |
||||
"node": "6.14" |
||||
} |
||||
}] |
||||
] |
||||
} |
@ -0,0 +1,5 @@
|
||||
// we need this module because we can't avoid underscore lib usage in nedb
|
||||
// missing `pluck` method added
|
||||
var _ = require('lodash'); |
||||
_.pluck = _.map; |
||||
module.exports = _; |
@ -1,31 +0,0 @@
|
||||
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' } |
||||
] |
||||
} |
||||
] |
||||
} |
||||
} |
Loading…
Reference in new issue