1.0.1 • Published 6 years ago

albert-react-scripts v1.0.1

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

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 and postcss-cssnext. Note I removed autoprefixer because it's included in postcss-cssnext.
  • Allow consumers to set their own Babel config, they must have a .babelrc or babel field in their package.json. I required this to use the Relay Modern plugin on a side project. Because babel-preset-react-app is really good I recommend doing yarn add babel-preset-react-app and adding the preset echo '{ "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