Skip to content

Example project for dynamically processing Pug templates through Webpack to output individual HTML files.

License

Notifications You must be signed in to change notification settings

acdvs/webpack-pug-dynamic-processing-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

An example barebones project for dynamically processing all Pug templates in a directory to output individual HTML files.

Based on a Stack Overflow question: Can Webpack build multiple HTML files from SCSS and Pug?

Function

Uses html-webpack-pug-plugin and html-webpack-plugin to loop through a given directory that contains Pug files and outputs the resulting HTML file for each template in another directory via a simple loop in the Webpack configuration.

Usage

Install packages and run script:

npm install
npm run build

About

Example project for dynamically processing Pug templates through Webpack to output individual HTML files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published