54 Commits

Author SHA1 Message Date
Kristóf Poduszló
3dda45208e Started using babel-preset-latest (#490)
* Started using babel-preset-latest

* Updated babel dependencies

* Remove redundant babel-plugin-syntax-async-functions

* Disabled redundant regenerator transform
2016-08-25 14:20:14 +01:00
Felipe Moyano
9e81d1c22b Added support for webp images in #442 (#458) 2016-08-25 14:00:51 +01:00
Eli Perelman
ffe6b2f904 Adding namespaced environment variables to DefinePlugin under REACT_APP_ (#342) 2016-08-25 13:57:29 +01:00
Dan Abramov
6e18b2a069 Support async/await 2016-08-25 13:50:18 +01:00
Robin Ricard
0b3ff385cf Deactivate the new-cap rule in ESLint (#470)
This rule is considered dangerous in certain situations. This is especially true for Immutable.js users. See the discussion at issue #465 for more information about this.
2016-08-22 18:45:40 +01:00
Gregory Shehet
db476dc787 add otf font format to loaders (#434)
* add off font format to loaders

* add otf format support
2016-08-22 18:45:33 +01:00
Arunoda Susiripala
d62475615f Add a hash to media files even in the devmode. (#446)
This will work correctly when there are duplicate filenames in different paths.
Fixes: #445
2016-08-22 18:43:06 +01:00
Luigi Maselli
9e379179ee Add React Native Web support (#407) 2016-08-22 18:42:42 +01:00
Dan Abramov
0030d6881f Add Object.assign() polyfill (#399) 2016-08-22 18:42:03 +01:00
Dan Abramov
346a069346 Clarify why we only need css?-autoprefixer in development
Fixes #377
2016-08-22 18:40:53 +01:00
Dan Abramov
8e1629578f Document configuration and build process (#362) 2016-08-22 18:40:10 +01:00
Dan Abramov
6fb26674c6 Check for JS files first 2016-08-22 18:29:26 +01:00
Kristóf Poduszló
e9f1e67194 Added a reasonable config for autoprefixer (resolves #73) (#345)
* Added a reasonable config for autoprefixer (resolves #73)

* Moved autoprefixer config to webpack.config
2016-08-22 18:27:55 +01:00
Dan Abramov
946fd01cca Force rebuild after npm install (#349)
Fixes #186
2016-08-22 18:20:14 +01:00
Alex Zherdev
c239551713 Accept version when loading fonts e.g. font-awesome (#298)
* Accept version when loading fonts e.g. font-awesome

* Add query string support to mp4/webm
2016-07-30 18:51:27 +01:00
Alex Zherdev
c7c319e207 Webpack plugin to detect case mismatch in requires (#266) 2016-07-29 20:39:40 +01:00
Dan Abramov
f05cba5e29 Use /static paths for assets (#278)
* Use /static paths for assets

* Fix e2e test
2016-07-29 17:09:48 +01:00
Dallon Feldner
d2baa3c4dd Symlink-friendly path resolution (#277)
* Symlink-friendly path resolution

I was having difficulties using a local copy of `react-scripts` and `npm link`ing it into a real world project. This change resolves paths relative to the current working directory (that is, most likely the directory of the app) rather than assuming a certain directory structure.

* Fix relative paths in post-eject case

because I'm an idiot

* Renamed resolveLib to resolveOwn
2016-07-29 17:09:40 +01:00
Konstantin Tarkus
dd6ec95cfe Rename compressor field to compress in UglifyJsPlugin settings (#264) 2016-07-28 20:42:58 +01:00
Dan Abramov
fc32623fce Replace eslint-plugin-flow-vars with eslint-plugin-flowtype
This is the one people are converging on, and flow-vars may get deprecated.
2016-07-28 19:55:48 +01:00
Dan Abramov
9dab8715d4 Add a temporary fix for generators (#262)
This enables us to ship them now, and find a way to resolve runtime path without webpack later.
See https://github.com/facebookincubator/create-react-app/issues/255
2016-07-28 19:52:14 +01:00
Dan Abramov
29c913e92e Tweak ESLint to better understand Flow (#261) 2016-07-28 19:32:16 +01:00
Dan Abramov
373257255c Enable Node environment for ESLint
Fixes #260
2016-07-28 17:13:30 +01:00
Dan Abramov
11894dcdb3 Enable generators (#238)
* Enable generators

* Opt out of using helpers
2016-07-27 21:44:50 +01:00
Peter Indiola
2edf2180f2 Suggest another port when 3000 is busy (#101, #243)
Also fixes #194
2016-07-27 21:21:50 +01:00
Dan Abramov
a11d6a398f Support .json extension
Some libraries rely on it, and they work fine with browserify.
Let’s just do the right thing here by default.
2016-07-27 19:32:52 +01:00
Alex Zherdev
88363b14a0 Turn off .babelrc usage (#236) 2016-07-27 15:41:34 +02:00
Dan Abramov
6d7741e897 Add Promise and fetch polyfills (#235) 2016-07-27 13:04:13 +01:00
Florian Goße
e839dff82c Use keyword warn in eslint config (#234)
* Use keyword `warn` in eslint config

We can use the keyword `warn` for rule configuration instead of a number.

* Fix comment which where WARNING was replaced

* Remove extra apostrophe
2016-07-27 11:30:20 +01:00
Dan Abramov
62679927b9 Use shorter hashes in production builds 2016-07-26 22:35:41 +01:00
Kevin Lacker
4c55619648 allow 2 * x + 1 2016-07-25 22:03:01 -07:00
Dan Abramov
dfecfea6ba Unroll indirection in paths (#191) 2016-07-25 22:45:27 +01:00
breaddevil
d69ee278f7 update webpack css include path, allow files to be loaded from the project root node_modules folder. (#178) 2016-07-25 19:40:26 +01:00
Ethan Cohen
90d49f83d5 [dependency] - Add select eslint-plugin-jsx-a11y rules to lint config. (#175)
This project is a really good use case to apply some accessibility
rules to the lint config. For beginners getting started with React, we
can also teach/enforce basic accessibility rules in the web at author
time.

For now, I’ve just applied to the rules that are listed in
`eslint-config-airbnb` because these are most real-world tested, and we
can continue to add.

Happy to help if there are any questions/issues/concerns about the
plugin!
2016-07-25 18:43:53 +01:00
Dan Abramov
458d3f9eb1 Provide instructions on publishing GH Pages (#162)
* Provide instructions on GH Pages deploy

* Add docs for GH Pages deployment

* Prevent incorrect paths in file-loader

* Minor message tweaks

* Update README.md

* Fix relative paths
2016-07-25 00:55:59 +01:00
Donald Hruska
ef4f8e9058 Don't assume the project is hosted at the root (#94)
* Don't assume the project is hosted at the root
* Require package.json in webpack.config.prod.js and use homepage if set; otherwise use '/'

* Fix package.json path and add sample package.json for tests

* Update publicPath to use relative path portion of URL defined in homepage

* Update successful bundle generation message

* Show bundle generation success message based on presence of homepage in package.json
2016-07-25 00:07:33 +01:00
Max Stoiber
662fdb7055 Disable jsx-handler-name eslint rule (#157)
Ref #156

Not sure if we can simply delete the line and that'll disable it, so I
went with setting it to 0. Let me know!
2016-07-24 12:18:28 +01:00
Glenn Reyes
a35ac92807 Resolve imported CSS files from node_modules (#105)
* Resolve imported CSS files from anywhere
* Resolve imported CSS files from src and node_modules folder only

Closes #103
2016-07-23 09:02:44 +02:00
Dan Abramov
68850944c0 Add Flow stubs
See #72 for details
2016-07-22 12:32:12 +01:00
Dan Abramov
214fc8ee0b Disable second pass of autoprefixer 2016-07-22 11:23:34 +01:00
Dan Abramov
024b4d4fcd Minor tweaks 2016-07-22 11:09:56 +01:00
Max
ce9fdca524 Fix webpack config 2016-07-22 11:07:45 +01:00
Dan Abramov
ee91202ca7 Move favicon outside src 2016-07-22 11:06:23 +01:00
Keyan Zhang
cbb4123b67 added favicon (#70) 2016-07-22 04:29:52 +01:00
Dan Abramov
e563b209c7 Fix local development paths (#52)
Local npm start and npm run build got broken by #33
2016-07-21 05:49:56 +01:00
Dan Abramov
9df1c2ff16 Make errors and warnings nicer (#50)
* Make errors and warnings nicer

* Fix license stripping to not be eager

* Minor tweaks
2016-07-21 05:04:57 +01:00
Dan Abramov
9652973e64 Optimize the production build (#49)
Inspired by react-boilerplate setup
2016-07-20 22:02:12 +01:00
Dan Abramov
b91bf6675d Add support for some ES proposals that we use (#43) 2016-07-20 18:15:49 +01:00
Dan Abramov
4ad5170b0b Enable hot reloading for CSS (#42) 2016-07-20 18:05:56 +01:00
Kevin Lacker
ff73f16b47 a bit of lint-relaxing (#44) 2016-07-20 18:04:49 +01:00