mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
fix: webpack building and upgrading to webpack 4.5
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user