use-preact

1.0.1 • Public • Published

use-preact

Use preact to reduce bundle sizes, this script will add preact-compat as an alias

Usage

npm i --save-dev use-preact

By default use-preact points to the location of the webpack config for create-react-app projects.

use-preact <PATH_TO_CONFIG> <SEARCH_STRING>
 
use-preact ./node_modules/react-scripts/config/ preact-compat

Package Sidebar

Install

npm i use-preact

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • tscanlin