I try to use HtmlWebPackPlugin to generate my index.html so...
- I init a new project
vue init webpack-simple#1.0 vue-html-webpack - Install
npm i -D html-webpack-plugin - Rename
index.htmltoentry-template.html - Configure
webpack.config.js..
I add ..
plugins: [
new HtmlWebpackPlugin({
template: 'entry-template.html',
environment: process.env.NODE_ENV
})
],
But web I start the app npm run dev, the 404 is returned (I suppose is not finding the index.html)
My entry-template.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>GitSkills</title>
</head>
<body>
<div id="app"></div>
</body>
</html>
Full source here
Result -> https://vue-html-webpack-ogqlguavxx.now.sh/
Question
How can I use HtmlWebpackPlugin with Vue 1.0?