GithubHelp home page GithubHelp logo

jxmked / webpack-multipage-base-template Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.47 MB

Multipage webpack rendering

Home Page: https://jxmked.github.io/webpack-multipage-base-template/

License: MIT License

JavaScript 10.57% HTML 74.64% TypeScript 1.71% SCSS 8.06% CSS 5.01%
multipage-static-websites typescript webpack

webpack-multipage-base-template's Introduction

Webpack Multipage Base Template

Wanna do some multipage static sites?

Config

Open entries.mjs file and add your pages in pages constant.

{
  title: 'index', // For config title and chunking
  folder: '', // Source file
  output_folder: '' // Url
}

It also supports sub/sub/sub directories like what I did in /pagetwo/about

  • The title, folder and output_folder keys should be unique.
  • The folder key will be the actual folder inside of src folder.
  • The output_folder key will be use as url path like http://localhost:3000/:folder

The webpack config is similar to the first version of the "Webpack base template," but the "Webpack base template" is only for single-page applications. The main difference between this template and the others is that this template supports multipage rendering, although it requires some additional setup complexity. To simplify the process, I added the entries.mjs file for easier configuration. Additionally, I have updated my ga4-webpack-plugin to meet the requirements of this webpack configuration.

Hope you guys like this

Incase you lost

Any questions?

webpack-multipage-base-template's People

Contributors

jxmked avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.