Trying to add a custom index.html
See original GitHub issueDo you want to request a feature or report a bug? Yes
What is the current behaviour?
When I added the index.html and trying to build with it using preact buld --template {path}
I get TypeError: Cannot read property 'compilation' of undefined
If the current behaviour is a bug, please provide the steps to reproduce.
cp node_modules/preact-cli/lib/resources/template.html src/index.html
preact build --template ./src/index.html
What is the expected behaviour? Project builds successfully
If this is a feature request, what is motivation or use case for changing the behaviour?
Please mention other relevant information.
preact.config.js
:
import envVars from 'preact-cli-plugin-env-vars';
export default function (config, env, helpers) {
envVars(config, env, helpers);
}
Please paste the results of preact info
here.
preact-cli 2.2.1
It’s a pretty basic app created with preact CLI.
Issue Analytics
- State:
- Created 4 years ago
- Comments:17 (9 by maintainers)
Top Results From Across the Web
Creating a custom index.html file - Name.com
Click New File in the upper left corner and name the file index.html. Highlight the file by clicking once and then click the...
Read more >Creating An Html File - Mike Dane
This tutorial covers how to use creating an html file in HTML. ... Now that you have index.html open on your browser, whenever...
Read more >Creating an Index for a Web Site | Microsoft Learn
Create the HTML file that will contain your index. Place your cursor at the location where you want the index file to appear,...
Read more >providing custom index.html file for electron-webpack
html for you using html-webpack-plugin , I want to provide my own index.html instead of the default one. – Houss_gc. Sep 16, 2017...
Read more >How can i set my custom index.html page ? | Vaadin
In fact I would like to call my own javascript library in all my vaadin applications. I saw that it was possible to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
template.html
prerender-urls.json
i’ll update our docs as well 😃