Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/config/webpack.config.js
Show First 20 Lines • Show All 583 Lines • ▼ Show 20 Lines | return { | ||||
].filter(Boolean), | ].filter(Boolean), | ||||
}, | }, | ||||
plugins: [ | plugins: [ | ||||
// Work around for Buffer is undefined: | // Work around for Buffer is undefined: | ||||
// https://github.com/webpack/changelog-v5/issues/10 | // https://github.com/webpack/changelog-v5/issues/10 | ||||
new webpack.ProvidePlugin({ | new webpack.ProvidePlugin({ | ||||
Buffer: ['buffer', 'Buffer'], | Buffer: ['buffer', 'Buffer'], | ||||
}), | }), | ||||
new webpack.IgnorePlugin({ | |||||
resourceRegExp: /^\.\/wordlists\/(?!english)/, | |||||
contextRegExp: /bip39\/src$/, | |||||
}), | |||||
// Generates an `index.html` file with the <script> injected. | // Generates an `index.html` file with the <script> injected. | ||||
new HtmlWebpackPlugin( | new HtmlWebpackPlugin( | ||||
Object.assign( | Object.assign( | ||||
{}, | {}, | ||||
{ | { | ||||
inject: true, | inject: true, | ||||
template: paths.appHtml, | template: paths.appHtml, | ||||
}, | }, | ||||
▲ Show 20 Lines • Show All 189 Lines • Show Last 20 Lines |