use-preact
v1.0.1
Published
Use preact to reduce bundle sizes, this script will add preact-compat as an alias
Downloads
3
Readme
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