PixelPaul's avatar

run rule through copied file

howdy, so i have this custom rule in my webpackConfig

module: {
          rules: [
            {
              test: /\.html$/,
              loader: 'string-replace-loader',
              options: {
                    search: 'MIX_RESOURCES_DOMAIN',
                    replace: process.env.MIX_RESOURCES_DOMAIN
              }
            }

and i want it to work for copied files via the mix.copy() but it does not work, it works for js files via mix.js() tho.

does anyone know how i can get that rule to work on copied files?

0 likes
1 reply

Please or to participate in this conversation.