-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working concept on moving router things to /core so it's included in …
…deployed code. (#377) Moved infrastructure handlers from devtools to core package and updated serverless paths. Next is to test it in the deployed environment, and eventually roll in webpack.
- Loading branch information
Showing
13 changed files
with
30 additions
and
21 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../devtools/infrastructure/backend-utils.js → packages/core/handlers/backend-utils.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...re/workers/integration-defined-workers.js → ...rs/workers/integration-defined-workers.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const slsw = require('serverless-webpack'); | ||
const webpack = require('webpack'); | ||
const path = require('path'); | ||
const CopyPlugin = require('copy-webpack-plugin'); | ||
|
||
|
||
module.exports = { | ||
devtool: 'source-map', | ||
entry: slsw.lib.entries, | ||
mode: slsw.lib.webpack.isLocal ? 'development' : 'production', | ||
target: 'node', | ||
externals: ['mongoose', 'express', 'node-fetch'], | ||
plugins: [ | ||
// This defines the window global (with value of `undefined`). | ||
new webpack.ProvidePlugin({ | ||
window: path.resolve(path.join(__dirname, 'src/utils/webpackFakeWindow')), | ||
}), | ||
] | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters