fix: webpack building and upgrading to webpack 4.5

This commit is contained in:
Crawl
2018-04-11 13:49:42 +02:00
parent cb69102e5e
commit f2474845ba
2 changed files with 5 additions and 2 deletions

View File

@@ -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: {