-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Two bundles will now be created: - one for development, with debug and unminified: dist/engine.io.js - one for production, without debug and minified: dist/engine.io.min.js
- Loading branch information
1 parent
f7ba966
commit 4683a95
Showing
5 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
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,19 @@ | ||
const config = require("./webpack.config"); | ||
|
||
module.exports = { | ||
...config, | ||
output: { | ||
...config.output, | ||
filename: "engine.io.min.js" | ||
}, | ||
mode: "production", | ||
module: { | ||
rules: [ | ||
...config.module.rules, | ||
{ | ||
test: /\.js$/, | ||
loader: "webpack-remove-debug" | ||
} | ||
] | ||
} | ||
}; |
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ module.exports = { | |
} | ||
})()` | ||
}, | ||
mode: "production", | ||
mode: "development", | ||
node: { | ||
Buffer: false | ||
}, | ||
|
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