Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- index.ejs:
- <!doctype html>
- <html lang="en">
- <head>
- ....
- </head>
- <body>
- <%- include partials/header -%>
- </body>
- </html>
- ------------------------------------
- in partials/header.ejs:
- <section id="header">
- <header>
- <a href="#home" rel="Shlomi Levi" title="Shlomi Levi">Shlomi Levi
- <small>
- <a class="link" href="mailto:wizardnet972@gmail.com" target="_blank" title="wizardnet972@gmail.com">wizardnet972@gmail.com</a>
- </small>
- </a>
- </header>
- </section>
- ------------------------------------
- in styles.scss:
- @import 'partials/header';
- body {}
- ------------------------------------
- in partials/header.scss:
- #header {
- a {display:block;}
- ------------------------------------
- in webpack:
- in module/rules section:
- {
- test: /\.ejs$/,
- loader: 'ejs-loader',
- },
- in plugins section:
- new HtmlWebPackPlugin({
- template: '!!ejs-compiled-loader!index.ejs',
- }),
Add Comment
Please, Sign In to add comment