The problem of vue using ejs as the page of entry file

vue is a page that uses index.html as the entry by default, and app.js will be inserted into the page during compilation

clipboard.png

ejsjs;

1,webpack,app.jshtml
2,ejs

clipboard.png

address of Code Cloud: https://gitee.com/nana5238/ex...

think about this thing for the first time, please correct it, thank you


this is usually done by webpack's htmlplugin plug-in


solved, treat ejs as html

app.engine('.html', require('ejs').renderFile);
app.set('view engine', 'html');
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3bb70-2c2c3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3bb70-2c2c3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?