Skip to content

Commit

Permalink
fix: webpack building and upgrading to webpack 4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
iCrawl committed Apr 11, 2018
1 parent cb69102 commit f247484
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"peerDependencies": {
"bufferutil": "^3.0.0",
"erlpack": "discordapp/erlpack",
"sodium": "^2.0.0",
"libsodium-wrappers": "^0.7.0",
"sodium": "^2.0.0",
"uws": "^9.14.0",
"zlib-sync": "^0.1.0"
},
Expand All @@ -54,7 +54,8 @@
"eslint": "^4.17.0",
"json-filter-loader": "^1.0.0",
"uglifyjs-webpack-plugin": "^1.1.8",
"webpack": "^3.11.0"
"webpack": "^4.5.0",
"webpack-cli": "^2.0.14"
},
"engines": {
"node": ">=8.0.0"
Expand Down
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const filename = `discord${process.env.VERSIONED ? `.${version}` : ''}${prod ? '

module.exports = {
entry: './src/index.js',
mode: prod ? 'production' : 'development',
output: {
path: path.resolve('./webpack'),
filename,
Expand All @@ -35,6 +36,7 @@ module.exports = {
{ test: /\.md$/, loader: 'ignore-loader' },
{
test: require.resolve('./package.json'),
type: 'javascript/auto',
use: {
loader: 'json-filter-loader',
options: {
Expand Down

0 comments on commit f247484

Please sign in to comment.