• This repository has been archived on 04/Sep/2023
  • Stars
    star
    275
  • Rank 149,796 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Webpack template/example with multiple static html pages

Static html pages with Webpack 5

CI js-standard-style GitHub issues GitHub last commit

> PREVIEW LIVE

This is a forkable example of a static website (plain html/css/javascript) assembled with webpack. You could also use this repository as a template when creating a new one.

Article explaining how this example was created: https://www.ivarprudnikov.com/static-website-multiple-html-pages-using-webpack-plus-github-example/

  • Webpack4 implementation can still be found on a separate branch webpack4

Prerequisites

Development

  • npm i - install dependencies
  • npm start - start development server
  • npm test - run minimal tests (eg: lint javascript files)
  • npm run cy:run - run Cypress functional/browser/e2e tests. Works only when running website locally (npm start or npm run preview)

Production

  • npm run build to prepare html, css, js files in dist/ directory
  • npm run preview - run build and serve production files locally

Production build is built on Travis CI and saved in gh-pages branch which in turn is hosted through Github pages https://ivarprudnikov.github.io/webpack-static-html-pages/

Credits

More Repositories

1

use-python-in-node

Example of Python script usage in Node.js with sync/async output rendering in HTML
HTML
26
star
2

char-rnn-tensorflow

Train your own text generator in this webapp. Training based on LSTM network (Tensorflow in Python), webapp implemented in Node.js
Python
7
star
3

ivarprudnikov.com

Blog. Jekyll with adopted Bootstrap 4 blog theme
SCSS
4
star
4

android-add-dagger

App for an article "Android + Dagger2 with sample app"
Java
3
star
5

test-client-for-oauth2

OAuth2 client (server) helps testing OAuth providers
JavaScript
3
star
6

react-auth0-template

Enhanced Auth0 (auth0-spa-js 1.8+) example with React (16+)
JavaScript
2
star
7

prometheus-alert-test

A simple example of how to test a prometheus alert
Shell
2
star
8

node-crypto-rc4-encrypt-decrypt

Implementing RC4 encryption algorithm in Node.js which is analoguous to the one in PHP `openssl_seal` method
JavaScript
2
star
9

auth0-micronaut-template

Micronaut v2 API server using Auth0 JWT tokens to authenticate
Kotlin
2
star
10

my_commit_history

Generate GitHub commit history among organisation repos
Shell
2
star
11

node.sample.blog

Node.js blog boilerplate with Express / Mongoose / Passport
JavaScript
2
star
12

dokerized-tomcat-and-cron

Example of a multi-process Docker container
Shell
2
star
13

test-react-enzyme-body-null

Example is meant to help with issue in facebook/react https://github.com/facebook/react/issues/15691
JavaScript
1
star
14

remote-server-config

Configure a remote server through a basic config file
Shell
1
star
15

boomboomMagentoTheme

Already quite old free Magento community theme designed for Magento 1.6
PHP
1
star
16

cms-angular-2.0

Example for comparison between angular 1.4 and 2.0 versions (Will finish some day)
JavaScript
1
star