GithubHelp home page GithubHelp logo

roberto-araya / bt-webpack-template Goto Github PK

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

Webpack 4 template for static websites.

License: MIT License

Shell 16.96% JavaScript 44.54% HTML 4.10% SCSS 34.40%

bt-webpack-template's Introduction

webpack 4 static website template

Description

This is a boilerplate starter project featuring Webpack 4 bundler. The features include:

  • Webpack Development & Production configurations
  • Babel
  • Sass
  • Postcss with Autoprefixer
  • Eslint
  • Js, CSS minify
  • Useful sass mixins libraries
  • Simple production configurations in docker-compose file

Dependencies

  • Git
  • Node.js the latest stable or LTS version.
  • Bash to run the template's install.

Usage for development

In the Linux terminal:

  1. export PROJECT_NAME=name Replace 'name' with the name of your project and run.
  2. Run git clone https://github.com/roberto-araya/bt-webpack-template $PROJECT_NAME && cd $PROJECT_NAME
  3. Run chmod +x install.sh && sh ./install.sh
  4. Start the development server using npm run serve
  5. Open http://localhost:9000

Available Commands

  • npm run serve - Run the live-reload development server
  • npm run build - Build the production bundle

Run production on Docker

The project include a docker-compose.yml file that will run a web service and will mount the production bundle. This can be used with nginx-proxy, and letsencrypt-nginx-proxy-companion.

To use, in a machine o VM with Docker and Docker Compose, run docker-compose up

Notes

The production and development configurations are located in wp.conf.prod.js and wp.conf.dev.js respectively.

The configs use some common plugins and loaders. The development bundler also runs the BundleAnalyzerPlugin.

License

Licensed under the MIT license.

bt-webpack-template's People

Contributors

roberto-araya 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.