1.0.4 • Published 4 years ago

cra-template-mm-base v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Base MM Create React App Template

cra-template-mm-base


Usage

This template is designed to be used together with our custom react-scripts.

npx

npx create-react-app my-app --scripts-version @psimk/react-scripts --template mm-base

yarn

yarn create create-react-app my-app --scripts-version @psimk/react-scripts --template mm-base

Differences to CRA

AdditionReasoning
CypressA modern E2E testing tool, essential for larger projects which have lots of moving parts
polyfill splittingModern browsers are used by at least 90% of our general user base. In order to decrease loading times for these users, we load the polyfills only for browsers which need them. The polyfill chunk will only be loaded via <script nomodule .../>.
TYPE_CHECK envThere exist cases where we don't want webpack to constantly typecheck and alert us to typing errors/warnings. By default this flag is enabled and can be disabled by creating a .env file in the root of the project and adding TYPE_CHECK=false
ChangeReasoning
MediaMonks eslintThe existing eslint setup was changed with the MM version, in order to maintain the same standards across different projects and to make it easier to set up new ones.
start renamed to devAgain, this change was made in order to maintain cohesion between all of our projects.

License

License

MIT license

1.0.4

4 years ago

1.0.3

4 years ago