@timfish/webpack-asset-relocator-loader
v0.1.0
Published
This loader wraps `@vercel/[email protected]` and modifies loading paths so that they are compatible with [**Electron Forge**](https://www.electronforge.io/config/plugins/webpack).
Downloads
699
Readme
@timfish/webpack-asset-relocator-loader
This loader wraps @vercel/[email protected]
and modifies
loading paths so that they are compatible with Electron Forge.
It works in development and production for both main and renderer processes.
This replaces @marshallofsound/webpack-asset-relocator-loader
which has become
unmaintained.
Add it to your loader rules in the same way as before:
module.exports = {
module: {
rules: [
{
test: /\.node$/,
use: "node-loader",
},
{
test: /\.(m?js|node)$/,
parser: { amd: false },
use: {
loader: "@timfish/webpack-asset-relocator-loader",
options: {
outputAssetBase: "native_modules",
},
},
},
],
},
};