Filter ccxt exchanges that you want to include in your Webpack bundle.
npm install ccxt-exchanges-loader> Filter ccxt exchanges that you want to include in your Webpack bundle.
* From v2, the loader supports ccxt v4.
* For ccxt v2 support, use loader v1.
> ccxt is a JavaScript / Python / PHP cryptocurrency trading library with support for more than 100 bitcoin/altcoin exchanges
This loader is useful if you:
- ship ccxt with a frontend app
- don't need all the exchanges that ccxt supports
- don't need the pro features
You will get a smaller bundle: lighter, faster code.
``bash`
npm install ccxt-exchanges-loader -DE
Add the loader to your config:
`js``
module.exports = {
module: {
rules: [
//...
{
test: /ccxt\.js$/,
use: [
{
loader: 'ccxt-exchanges-loader',
options: {
exchanges: ['binance', 'kraken'],
removePro: true
}
}
],
include: /node_modules\/ccxt/,
},
]
]
}

The loader may become incompatible with newer versions of ccxt. In case of problem, open an issue.