https://github.com/bytrangle/webpack-and-ejs-template
https://github.com/bytrangle/webpack-and-ejs-template
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bytrangle/webpack-and-ejs-template
- Owner: bytrangle
- Created: 2020-04-02T12:51:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T18:18:07.000Z (over 3 years ago)
- Last Synced: 2025-02-08T19:41:33.228Z (over 1 year ago)
- Language: JavaScript
- Size: 2.84 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webpack-and-ejs-template
An Express.js setup to demonstrate how to make Webpack and EJS template work together.
The `webpack.config.js` will output Javascript files to `dist/js` folder, CSS and SCSS files to `dist/css` folder.
It also contains a setting for `html-webpack-plugin` which take an ejs template and output
an `index.ejs`that loads stylesheet and script.
This file is located at `views/layout` directory and loads dynamic content from other ejs files at `views/pages`.
The ejs output means that we can use EJS for server-side rendering.