use webpack-node-externals in server build
This commit is contained in:
parent
6f3b1e5b3f
commit
510f1c81dd
@ -1,6 +1,7 @@
|
||||
const path = require('path');
|
||||
const merge = require('webpack-merge');
|
||||
const baseConfig = require('./webpack.base.js')
|
||||
const baseConfig = require('./webpack.base.js');
|
||||
const webpackNodeExternals = require('webpack-node-externals');
|
||||
|
||||
const config = {
|
||||
target: 'node',
|
||||
@ -8,7 +9,9 @@ const config = {
|
||||
output: {
|
||||
filename: 'bundle.js',
|
||||
path: path.resolve(__dirname, 'build')
|
||||
}
|
||||
},
|
||||
|
||||
externals: [webpackNodeExternals()]
|
||||
};
|
||||
|
||||
module.exports = merge(baseConfig, config);
|
Loading…
Reference in New Issue
Block a user