FirefoxUX / photon-components-web

INACTIVE - http://mzl.la/ghe-archive - Photon versions of the some common WebComponents
https://FirefoxUX.github.io/photon-components-web/
Mozilla Public License 2.0
29 stars 11 forks source link

Tweaks to webpack build to reduce boilerplate #36

Closed lmorchard closed 5 years ago

lmorchard commented 5 years ago
lmorchard commented 5 years ago

Main things here are:

  1. Move all the imports into the base project index.js so that both npm run storybook and npm run build:webpack build basically the same thing
  2. Use require.context() from webpack to dynamically import all the components so that we don't need to list them manually