webpack-esnext-boilerplate

  • 所有者: philipwalton/webpack-esnext-boilerplate
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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.

主要指标

概览
名称与所有者philipwalton/webpack-esnext-boilerplate
主编程语言JavaScript
编程语言JavaScript (语言数: 2)
平台
许可证
所有者活动
创建于2017-09-09 18:03:02
推送于2023-01-03 15:16:19
最后一次提交2019-07-25 14:59:54
发布数0
用户参与
星数517
关注者数12
派生数38
提交数21
已启用问题?
问题数9
打开的问题数2
拉请求数3
打开的拉请求数12
关闭的拉请求数3
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?