albert-react-scripts

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i albert-react-scripts

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • albertstill