Skip to content

Commit

Permalink
chore: add node-externals to webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
grvcoelho committed Apr 12, 2018
1 parent f6ad702 commit 5e2a528
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-ramda": "^1.6.1",
"webpack": "^4.5.0",
"webpack-cli": "^2.0.14"
"webpack-cli": "^2.0.14",
"webpack-node-externals": "^1.7.2"
},
"dependencies": {
"bluebird": "^3.5.1",
Expand Down
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require('path')
const externals = require('webpack-node-externals')

const config = {
context: path.join(__dirname, './src'),
Expand All @@ -11,7 +12,8 @@ const config = {
},
devtool: 'source-map',
target: 'node',
mode: 'production',
externals: [externals()],
mode: 'development',
module: {
rules: [
{
Expand Down

0 comments on commit 5e2a528

Please sign in to comment.