skip to Main Content

Add a script at the end of HTML with HtmlWebpackPlugin

I have a React application with an index.html file in the public folder: <!DOCTYPE html> <html lang="ru-RU"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Test</title> <link rel="dx-theme" data-theme="generic.dark" href="/css/some.css" data-active="false"> <base href="/" /> </head> <body class="dx-viewport"> <div id="root"></div>…

VIEW QUESTION

Javascript – I can't connect js script to my html file using handlebars engine (I use webpack)

When I paste script tag to html file which collected with html-buldler-webpack-plugin I getting error: "TypeError: Found non-callable @@iterator". This my webpack.config: const path = require('path') const HtmlBundlerPlugin = require('html-bundler-webpack-plugin') module.exports = { mode: 'development', entry: './src/js/main.js', output: { filename:…

VIEW QUESTION
Back To Top
Search