albert-react-scripts
v1.0.1
Published
Configuration and scripts for Create React App + CSS Modules + configurable Babel.
Downloads
15
Readme
albert-react-scripts
My version tracks the offical react-scripts stable version (currently v1.1.0) with a couple of differences, here is the code diff on GitHub.
- Added CSS Modules,
postcss-import
andpostcss-cssnext
. Note I removedautoprefixer
because it's included inpostcss-cssnext
. - Allow consumers to set their own Babel config, they must have a
.babelrc
orbabel
field in their package.json. I required this to use the Relay Modern plugin on a side project. Becausebabel-preset-react-app
is really good I recommend doingyarn add babel-preset-react-app
and adding the presetecho '{ "presets": ["react-app"] }' > .babelrc
, that way your config can be a superset of the offical config.
create-react-app --scripts-version albert-react-scripts my-app && cd my-app && yarn add babel-preset-react-app && echo '{ "presets": ["react-app"] }' > .babelrc && yarn run start