Skip to content

Commit d7fea6b

Browse files
committed
sourcemap
1 parent 4734523 commit d7fea6b

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Try to visit "@your host/receiver" in browser, when you see "Method Not Allowed"
8080
|token|String|false|for security if needed|
8181

8282
# Others
83-
Sometimes bundle file is too big and uploading appears "504 Gateay Time-out" error, enlarge client_max_body_size value in nginx.conf may solve this problem:
83+
Sometimes bundle file is too big and uploading appears "504 Gateay Time-out" or "413 Request Entity Too Large" error, enlarge client_max_body_size value in nginx.conf may solve this problem:
8484
```
8585
client_max_body_size: 10M; #default 1M
8686
```

dist/index.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "deploy-server-webpack-plugin",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "A plugin that deploys wepack bundles to server",
55
"main": "dist/index.js",
66
"scripts": {
7-
"babel": "babel ./src -d ./dist --compact"
7+
"babel": "babel ./src -d ./dist --compact --source-maps"
88
},
99
"repository": {
1010
"type": "git",

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "receiver",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "files receiver",
55
"main": "app.js",
66
"scripts": {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = class DeployServerWebpackPlugin {
6969
this.avalKeys.map((item, index) => {
7070
this.avalAssets[item].map(from => {
7171
// compatible with windows
72-
const dest = (this.mapping[index].to + from.replace(item, '')).replace(/\\/g, '/');
72+
const dest = (this.mapping[index].dest + from.replace(item, '')).replace(/\\/g, '/');
7373
this.deploy({
7474
file: fs.createReadStream(from),
7575
dest,

0 commit comments

Comments
 (0)