Closed zacard-orc closed 7 years ago
The built in fallback loader does not support include but you can use another loader :)
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
webpack.config.js: new HtmlWebpackPlugin({ // Also generate a test.html favicon:'src/assets/icons/page_bird1.ico', filename: 'linly.html', title: 'Trioly template', xfile:{ js: [publicPath+'assets/js/jquery.min.js'] }, template: 'src/pages/page1/page1.ejs', inject: 'body' })
page1.ejs: ...... <%- include hello.ejs %>
hello.ejs
then ,it report "unexpected string "
if i replace some configuration With ejs-render-loader or ejs-compile-loader template: '!!ejs-render-loader!src/pages/page1/page1.ejs',
then ,it report "htmlWebpackPlugin is undefined".....
how to fill these two requirements..?? ^_^