@skedwards88/shared-components

v0.0.34

Published

Shared components for my game apps.

Readme

shared-components

Shared components for my game apps.

Usage

Add @skedwards88/shared-components to dependencies and install.

In the webpack config, replace

exclude: /(node_modules|bower_components)/,

with

include: [
  path.resolve(__dirname, 'src'),
  path.dirname(require.resolve('@skedwards88/shared-components/package.json')),
],

Import components as needed. e.g. import MoreGames from "@skedwards88/shared-components/src/components/MoreGames.js"

Import styles as needed. e.g. import "@skedwards88/shared-components/src//styles/MoreGames.css"

Development

During deployment, the compressImages script will compress some png images into the webp format. The compressed images will be included in the published package, but will not be committed to this repo. You can also compress these images by running npm run compressImages if you have the webp compression tool installed.