Giter Site home page Giter Site logo

jorjon / htmlcsswebpack Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 3 KB

HTML / CSS / Webpack only website boilerplate

License: MIT License

JavaScript 90.91% HTML 6.04% CSS 3.05%
html css webpack pug normalize-css webpack4 hot-reload hot-module-replacement css3

htmlcsswebpack's Introduction

HTML/CSS only site boilerplate

  • Webpack 4
  • PUG
  • CSS (without preprocessors)
  • Normalize.css
  • No Javacript
  • Autoreload for HTML, HMR for CSS

Requirements

  • clean-webpack-plugin: to remove dist folder each time we build.
  • css-loader: to parse css files.
  • html-webpack-plugin: to generate the final HTML file, this is used alongside pug-loader.
  • mini-css-extract-plugin: ExtractTextPlugin for Webpack 4.
  • normalize.cs: to normalize the CSS
  • optimize-css-assets-webpack-plugin: to minify the resulting CSS.
  • pug and pug-loader: to compile .pug files into .html.
  • style-loader: used in development to enable HMR for CSS
  • webpack: to actually build the website.
  • webpack-cli: required in Webpack 4.
  • webpack-dev-server: to test in development.
  • webpack-merge: to manage production and development webpack configurations.

Installation

Install all requirements using npm install

Usage

  • npm start to start the dev server
  • npm run build to build for production

Limitations

index.js file is used to include the CSS files and PUG file, otherwise Webpack can't them to the dependency graph. I can't seem to get rid of this limitation, thus a PR will be much welcome.

htmlcsswebpack's People

Contributors

jorjon avatar

Stargazers

 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.