Git Product home page Git Product logo

webpack-esnext-boilerplate's Introduction

Webpack ESNext Boilerplate

Webpack configuration and build scripts to deploy ES2015+ code to production (via <script type="module">) with legacy browser fallback support via <script nomodule>.

This boilerplate is an implementation of the techniques described in my article: Deploying ES2015+ Code in Production Today.

Usage

To view site locally, run the following command:

npm start

This will build all the source files, watch for changes, and serve them from http://localhost:8080. Make sure you open up the developer tools to view the console output.

To build the source files without watching for changes or starting a local server, run:

npm run build

development vs production environments

By default the build output is unminified. To generate minified, production-ready files, set NODE_ENV to production.

NODE_ENV=production npm run build

Features

To validate that this technique works for more than just simple, single-bundle sites, this boilerplate implements several advanced webpack features:

To see how these feature manifest themselves in the generated files, view the public directory after running the build step.

webpack-esnext-boilerplate's People

Contributors

philipwalton avatar

Watchers

Elvin Fu 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.