html-webpack-plugin Questions
1
I'm trying to create a plugin that acts as a plugin wrapper, loading configuration, files, etc. and adding more plugins to the current webpack compilation process.
In the apply function I create t...
Pritchett asked 17/5, 2018 at 3:53
2
Solved
I have a react application, currently migrating the app from CRA to vite. i have configured index.php (which has some php configuration) as entry point using HtmlWebpackPlugin. So, while migrating ...
Bonheur asked 13/7, 2022 at 7:5
2
I'm using webpack to modernize a legacy multiple-page ASP.NET Web Forms application. I've had pretty good success with it up till I tried using the SplitChunksPlugin to de-dupe my bundles using its...
Pythian asked 29/1, 2020 at 19:0
8
Solved
I'm using Webpack with html-webpack-plugin and their provided template.
I want to add a list of favicons in the header:
<link rel="apple-touch-icon" sizes="57x57" href="<%= htmlWebpackPlug...
Carvajal asked 6/2, 2016 at 10:4
2
Solved
I am fairly new to WebPack, and I want to be able to take a directory of CSS files (.app/styles/[css files...]) and output them into one CSS file (dist/styles.css).
Currently, all the JavaScript f...
Circumvolution asked 1/11, 2016 at 8:10
2
Solved
As the tittle suggest i can't get routes like
<Route path="/events/:id" component={EventDetailRoute} />
to work, and as i've read seems to be that the bundle in the index.html must be abso...
University asked 16/7, 2017 at 21:9
6
I tried to create a basic React app with webpack 4 following this link
until installing "html-webpack-plugin", I did not face any errors. But, once I run the command "npm run start", I keep gettin...
Impressionable asked 26/7, 2018 at 2:12
5
I am trying to pass title to html-webpack-plugin but it does not create title tag at all :(
Can somebody show me where is the problem
webpack.js
var HtmlWebpackPlugin = require('html-webpack-plu...
Giddens asked 4/11, 2016 at 10:57
2
How do I reference the hashed image (in the html page in the dist folder) after it has been created with copy-webpack-plugin?
I tried to resolve this problem in this way.
I have in my index.ejs fil...
Calvin asked 5/1, 2023 at 9:14
5
Solved
I'm using Webpack for bundling resources. Currently it bundle both the CSS and JS files into a separate file called bundle.js. How can I make both the JS and CSS embedded inline in html file?
impo...
Swamp asked 18/9, 2016 at 8:14
8
Solved
I 've got a problem with my webpack configuration. After implementing html-webpack-plugin I got an Error, there's whole error stack from generated index.html.
Error Stack:
Html Webpack Plugin:
Er...
Inviolate asked 19/4, 2017 at 11:43
0
Let's say I have 3 async chunks that were created by dynamic imports:
const Notes = lazy(() => import(/* webpackChunkName: "notes" */ 'pages/Notes'))
const Lists = lazy(() => import...
Morley asked 30/5, 2022 at 20:6
3
I installed Vue.js using the CLI as found here:
# install vue-cli
$ npm install --global vue-cli
# create a new project using the "webpack" template
$ vue init webpack my-project
# instal...
Tacheometer asked 5/7, 2017 at 8:48
2
Solved
I'm building a project on an ejected react cli. The reason I ejected it is because there will be multiple pages being generated and some stand alone scripts that I wanted to make and have them take...
Conformation asked 17/10, 2018 at 0:13
1
I upgraded my webpack v4 to v5 as per this docs https://webpack.js.org/migrate/5 and after that I am getting this error.
TypeError: Cannot add property htmlWebpackPluginAlterChunks, object is not e...
Ted asked 8/7, 2021 at 13:1
5
I'm using Webpack 4 and I'm creating the config file, when trying to use the HtmlWebpackPlugin it got this on the console: Entrypoint undefined = index.html, it opens the browser and the HTML does ...
Soulsearching asked 25/8, 2018 at 0:32
4
I am trying to copy library from node_modules to dist folder using html-webpack-plugin, the library name is wsrpc-python
That's my webpack config, I set file-loader but it doesn't help.
'use stri...
Malefaction asked 29/3, 2019 at 15:31
5
I am using HTMLWebpackPlugin and in my template I have an img tag:
<img src="./images/logo/png">
If you notice, here I am using a relative path thinking webpack will trigger the file loade...
Mylesmylitta asked 5/11, 2017 at 20:50
4
Solved
I use Webpack along with the plugin html-webpack-plugin. Based on an environment variable, I want to inject a <meta></meta> tag into the final index.html file.
How do I do this?
Typhoon asked 25/3, 2017 at 16:35
8
I'm using HtmlWebpackPlugin to generate HTML files with javascript.
Now I would like to add custom script at different parts of <head> and <body> tags
Example:
How do I,
Add <sc...
Fishhook asked 11/7, 2018 at 12:39
3
I am using webpack to build my react application. I just want to know is there are way of generating html having script tab with version number in file name like
.
I have tried to explore the Htm...
Verminous asked 24/5, 2016 at 14:30
3
I am starting a project using Webpack and typescript. But when I try to run the dev server I get a lot of errors on html-webpack-plugin. This is my output:
> [email protected] dev /home/ale...
Nessi asked 21/7, 2020 at 16:26
3
Solved
I'm trying to minify my html file with Webpack with HtmlWebpackPlugin plugin. I manage to make an index.html file into my dist loader, but I got some trouble to minify it.
dist/
node_modules/
src...
Kathernkatheryn asked 18/9, 2018 at 7:40
1
Solved
I have tried including a wildcard, which broke the build; and multiple favicon field entries, which just used the last one entered. How do I support including multiple favicon files using this plug...
Levalloisian asked 17/7, 2020 at 21:40
1
Solved
We had been using HtmlWebpackInlineSourcePlugin without issue but it's no longer supported so we moved to InlineChunkHtmlPlugin which works great for JS, but refuses to capture the output style.css...
Briarwood asked 28/4, 2020 at 21:54
1 Next >
© 2022 - 2024 — McMap. All rights reserved.