How can I provide parameters for webpack html-loader interpolation?
Solution 1 I found another solution, using html-loader with interpolate option. https://github.com/webpack-contrib/html-loader#interpolation { test: /\.(html)$/, include: path.join(__dirname, ‘src/views’), use: { loader: ‘html-loader’, options: { interpolate: true } } } And then in html page you can import partials html and javascript variables. <!– Importing top <head> section –> ${require(‘./partials/top.html’)} <title>Home</title> </head> <body> <!– Importing navbar … Read more