mirror of
https://github.com/danbulant/discord.js
synced 2026-06-20 15:11:32 +00:00
fix: webpack building and upgrading to webpack 4.5
This commit is contained in:
parent
cb69102e5e
commit
f2474845ba
2 changed files with 5 additions and 2 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue