We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello.
I am on the way of learning WebPack and use your example like a start point. Could you help, please, with the issue?
I have such a file structure:
and want to include navigation.html inside header.html
navigation.html
header.html
I have the Index.html :
Index.html
.... <!DOCTYPE html> <html> <%= _.template(require('./../includes/layout/head.html').default)(data) %> <body data-spy="scroll" data-target="#subNavigation" data-offset="200"> <%= _.template(require('./../includes/layout/header.html').default)(data) %> <%= _.template(require('./../includes/components/intro.html').default)(data) %> <div class="container">Index Page</div> <%= _.template(require('./../includes/layout/footer.html').default)(data) %> <script src="js/bundle.js"></script> </body> </html>
and the header.html:
<header id="header"> <img src="img/logo.svg" id="logo" /> <%= _.template(require('./../includes/components/navigation.html').default)(data) %> </header>
But as a result, I have an error:
Html Webpack Plugin: Error: Cannot find module './../includes/components/navigation.html' - module.js:11 require internal/module.js:11:18 - lodash.templateSources[1]:9 eval lodash.templateSources[1]:9:22 - index.html:108 D:/Projects/TestProject/markup/src/html/views/index.html:108:132 - index.html:115 ./node_modules/html-webpack-plugin/lib/loader.js!./src/html/views/index.html.module.exports D:/Projects/TestProject/markup/src/html/views/index.html:115:3 - index.js:284 Promise.resolve.then [markup]/[html-webpack-plugin]/index.js:284:18 - next_tick.js:188 process._tickCallback internal/process/next_tick.js:188:7
It would be great if you can push me on the right way.
The text was updated successfully, but these errors were encountered:
Hmmm this starter pack does not have an html file loader.
html
Please try installing https://github.com/webpack-contrib/html-loader .
Sorry, something went wrong.
Shouldn't row-loader do this?
row-loader
{ test: /\.html$/, include: path.resolve(__dirname, "src/html/includes"), use: ["raw-loader"] }
No branches or pull requests
Hello.
I am on the way of learning WebPack and use your example like a start point.
Could you help, please, with the issue?
I have such a file structure:
and want to include
navigation.html
insideheader.html
I have the
Index.html
:and the
header.html
:But as a result, I have an error:
It would be great if you can push me on the right way.
The text was updated successfully, but these errors were encountered: