@timfish/webpack-asset-relocator-loader

0.1.0 • Public • Published

@timfish/webpack-asset-relocator-loader

This loader wraps @vercel/webpack-asset-relocator-loader@1.4.1 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",
          },
        },
      },
    ],
  },
};

Readme

Keywords

none

Package Sidebar

Install

npm i @timfish/webpack-asset-relocator-loader

Weekly Downloads

195

Version

0.1.0

License

MIT

Unpacked Size

5.58 kB

Total Files

4

Last publish

Collaborators

  • timfish