My dilemma is this: I have a simple static page that does not require JavaScript. Using vue-cli 3, I am attempting to pass the HTML file through webpack for minification purposes. Unfortunately, it seems that accomplishing this task is not as straightforward as expected. Inside the vue.config.js
file, my configuration looks like this:
module.exports = {
pages: {
static_page: {
template: "./public/static_page.html",
entry: ""
}
}
};
Naturally, this setup fails because the entry
field is mandatory and cannot be left empty. Placing the HTML file directly into the public
directory results in vue-cli simply copying the file to the dist
folder without any processing or minification. While this behavior works, it does not meet my goal of minifying the HTML file. So, the question remains - how can I instruct vue-cli to process an HTML file that does not contain JavaScript code?