Dan Abramov
1a9722f50a
Revert "Set the public path to the asset manifest entries ( #2544 )"
...
This reverts commit bab2c29522 .
I meant to apply it to `next` instead.
2018-02-09 13:20:21 +00:00
Robin van der Vleuten
bab2c29522
Set the public path to the asset manifest entries ( #2544 )
2018-01-20 19:31:27 +00:00
Moos
dccc752cac
fix #2223 - [feature] Implement dotenv-expand to accept variable expa… ( #3387 )
...
* fix #2223 - [feature] Implement dotenv-expand to accept variable expansion in dot env files
* add to README TOC
* fix readme
* Update README.md
2018-01-09 16:05:36 +00:00
Nils Magnus Englund
bd682de1f6
Fixed typo in webpack.config.dev.js ( #3601 )
...
Replaced `it's` with `its`
2017-12-15 13:17:33 -05:00
Ian Sutherland
af291f3cb6
Add mjs and jsx filename extensions to file-loader exclude pattern ( #3537 )
2017-12-07 13:20:45 -05:00
vannio
801fec286e
Fix dead link ( #3453 )
...
Fix another dead link
2017-11-15 11:41:07 +00:00
Joe Lim
36cd35d684
Refactor extra watch options regex to react-dev-utils ( #3362 )
...
* extra watch options regex to react-dev-utils
* fix regex
* add test
* fix eslint error
* include react-dev-utils test in CI script
* attempt to fix import error
* attempt to fix error on CI
* Update .eslintrc
2017-11-03 22:23:31 -04:00
Dan Abramov
5811d55f70
Use new WebpackDevServer option ( #3401 )
2017-11-03 18:18:57 +00:00
Nik Nyby
70e0c08ef7
Remove output.path from dev webpack config ( #3158 )
...
According to this parameter's comment, it's unused but webpack-dev-server crashes without it. However, webpack-dev-server is running fine for me without this parameter.
2017-10-28 21:58:09 +01:00
Joe Haddad
5c8000f300
Add .mjs support ( #3239 )
2017-10-28 21:48:42 +01:00
Satya van Heummen
1fa16ace5f
Make uglify work in Safari 10.0 - fixes #3280 ( #3281 )
...
Implement settings as suggested here:
https://github.com/mishoo/UglifyJS2/tree/harmony#mangle-options
To solve this Safari bug:
https://bugs.webkit.org/show_bug.cgi?id=171041
2017-10-28 21:42:41 +01:00
Dan Abramov
fe4dc744d7
Polyfill rAF in test environment ( #3340 )
2017-10-28 17:57:27 +01:00
Jonny Buchanan
a0030fcf2d
Update style-loader and disable inclusion of its HMR code in builds ( #3236 )
2017-10-05 20:02:32 -04:00
Joe Haddad
01a0d737c7
Fix Windows compatibility ( #3232 )
...
* Windows compatibility
* Use regex for mutli-replace
2017-10-02 23:45:20 -04:00
Joe Lim
1e98d0f428
Watch for changes in src/**/node_modules ( #3230 )
...
* Allow the dev server to watch for changes in src/node_modules
* fix eslint error
* fix broken regex
* handle trailing slash edge case for file paths
Closes #2760
Fixes #3223
2017-10-02 22:57:02 -04:00
Sophie Alpert
2e82ebb337
BSD+Patents -> MIT ( #3189 )
...
* File headers BSD+Patents -> MIT
* BSD+Patents -> MIT
2017-09-26 10:30:05 +01:00
Kristie Howard
b67ef01ade
Update unclear wording in webpack config docs ( #3160 )
2017-09-19 22:00:44 -04:00
Anthony
6644054fc3
provide empty mock for child_process so importing libraries with it works ( #3033 )
2017-09-02 13:41:40 -07:00
Tharaka Wijebandara
1df16109c9
Fix error overlay 'Object.assign' issue in IE by including polyfills before webpack client ( #3046 )
2017-09-01 12:54:58 -07:00
Tharaka Wijebandara
ecd1f0544b
Convert react-error-overlay to React ( #2515 )
...
* Convert react-error-overlay to React
* Update compile-time error overlay to use react-error-overlay components
* Refactor react-error-overlay components to container and presentational components.
* Make the compile-time error overlay a part of react-error-overlay package.
* Use react-error-overlay as dependency in react-dev-utils to show compile-time errors.
* Run Prettier
* Move the function name fix into StackFrame itself
* Fix clicking on source code snippet to open the code in editor
* Use exact objects + minor style tweak
* Don't linkify frames that don't exist on the disk
* Fix lint
* Consolidate iframe rendering logic
* Remove circular dependency between react-dev-utils and react-error-overlay
* Fix lint
* Fix decoupling of react-dev-utils and react-error-overlay by moving middleware
* Deduplicate identical errors
2017-08-27 19:45:55 -06:00
Ade Viankakrisna Fadlil
1e3a64fa43
Use env variable to disable source maps ( #2818 )
...
* use env variable to disable source maps
* Rename to use SOURCE_MAP with explicit value
* Update webpack.config.prod.js
2017-08-08 21:53:37 -04:00
iamdoron
24b18aedd9
Allow importing package.json ( #2468 )
...
* Allow importing package.json
* Remove package.json import from App.js template
* fix importing package.json
* Rename variable to reflect path is relative to root
* Check for both package & package.json in ModuleScopePlugin
* Use regex to check relative path to package.json
* Strictly enforce package.json extension on scope plugin
* Add allowedPaths to ModuleScopePlugin ctor and use it to allow app package.json
* Remove package.json import from App.js template
* Add package.json to react-scripts/template, show package version and name in the template
* Remove import package.json from template
* Remove template/package.json and its references in code
* Update ModuleScopePlugin.js
* Update README.md
2017-08-01 22:50:58 -04:00
Andreas Hoffmann
a08eb3b44b
Use Rule.oneOf to resolve correct loader ( #2747 )
...
* Use oneOf to resolve correct loader
* Add html and json fallthrough again
* Use oneOf to resolve correct loader in dev
* Document file-loaders `js` exclusion
* Remove `jsx` from exclusion in prod config
2017-07-09 21:59:19 +01:00
Đinh Quang Trung
bbbc15dc8e
ESLint 4 ( #2735 )
...
* Update eslint-loader 1.7.1 -> 1.9.0
* Add eslintPath option
* Update eslint 3.19.0 -> 4.1.1
* Update peer dependencies
* Move eslintPath config to outside @remove-on-eject
2017-07-07 11:40:29 +01:00
Dan Abramov
567d981ee2
Fix external CSS imports ( #2680 )
...
* Fix external CSS imports
* Add external CSS import to integration test
* Fix assertion
2017-06-29 12:59:49 +01:00
Dan Abramov
a171d93064
Reformat source code with Prettier 1.5.2
2017-06-28 16:23:16 +01:00
Evan Jones
6ab0ec0075
Better React Native Web support ( #2511 )
...
* Better React Native Web support
* Adding better react-native-web support for jest testing
2017-06-28 15:29:58 +01:00
Dan Abramov
91064a1c7f
Ignore "Skipping static resource" message from SW precache ( #2645 )
2017-06-27 22:28:00 +01:00
Daniel Ciao
a9ac78996b
Fix sourcemap directory organizing on Windows ( #2456 ) ( #2610 )
...
* Fix sourcemap directory organizing on Windows
* Update comments
2017-06-27 16:55:28 +01:00
Ade Viankakrisna Fadlil
41f2013260
turn on ascii_only for issue with emoji and regex ( #2596 )
2017-06-27 14:05:15 +01:00
Dan Abramov
7a0fb4c62b
Use Babel compact mode in production ( #2389 )
2017-06-26 17:35:18 +01:00
Andy Kenward
43d0307bc1
webpack no need for ident if using complex options anymore ( #2430 )
...
Since `v2.2.1` of webpack the need for `ident` for complex options is no longer required. See
https://webpack.js.org/guides/migrating/#complex-options
2017-06-26 17:31:25 +01:00
Will Farley
3e9955ddb6
Update sw-precache-webpack-plugin to lastest version ( #2429 )
...
* Update sw-precache-webpack-plugin to v0.11.3
* Pin the version
2017-06-26 17:29:52 +01:00
Mico Piira
6e2898e596
Add empty mock for dgram ( #2600 )
2017-06-26 16:48:21 +01:00
Zac Kwan
c78c1fae62
Added NamedModulesPlugin in webpack.config.dev.js ( #2458 )
...
* Added NamedModulesPlugin in webpack.config.dev.js
* Update webpack.config.dev.js
2017-06-06 14:06:39 +01:00
David Ascher
f6d8544033
Disable comparisons feature in uglify compression in production ( #2379 )
...
* Disable a micro-option in uglify that appears to be buggy
See https://github.com/facebookincubator/create-react-app/issues/2376
* wrong plugin
* Add a comment
2017-05-27 12:36:42 +01:00
Zac Kwan
c1ba38dbf5
Removed the overriding of reduce_vars to false since webpack v2.6.0 included the fixed for Uglify bug ( #2351 )
2017-05-27 12:33:13 +01:00
Ryan Sullivan
55fe1369d7
Add navigateFallbackWhitelist /__* to SW Precache config ( #2347 )
...
* Add navigateFallbackWhitelist /__* to SW Precache config
* Add comments
2017-05-24 13:07:45 +01:00
Jeffrey Posnick
eadfad28f4
Provide a no-op SW that will be served by the dev environment. ( #2276 )
...
* Provide a no-op SW that will be served by the dev environment.
* Hide no-op service worker from user
2017-05-20 19:07:43 +01:00
Dan Abramov
ba0d0daf9c
Only enable host check if you use proxy, and add a way to opt out of it ( #2288 )
...
* Disable host check if you don't use proxy
* Add a way to opt out and document it
2017-05-20 18:34:16 +01:00
Dan Abramov
3a3be7478b
Fix a bug on empty NODE_PATH ( #2264 )
2017-05-19 20:06:15 +01:00
Dan Abramov
d24311ea79
Always resolve NODE_PATH ( #2261 )
...
* Always resolve NODE_PATH
* Update env.js
2017-05-19 19:55:57 +01:00
Dan Abramov
3cd2267256
Additional fix to service worker config for "homepage" field ( #2262 )
2017-05-19 19:41:59 +01:00
Dan Abramov
22ca584b2b
Work around Windows path issue in SWPrecacheWebpackPlugin ( #2255 )
2017-05-19 17:57:58 +01:00
Dan Abramov
f3f559937e
Ignore .env.local in test environment ( #2250 )
2017-05-19 17:18:29 +01:00
Oleg Kuzava
4a32171331
Fix read of .env variables ( #2242 )
2017-05-19 14:47:21 +01:00
Dan Abramov
55afd862c8
Move error overlay middleware ( #2216 )
2017-05-18 21:01:26 +01:00
Danil Shashkov
5f93bc4d55
ES6 syntax ( #2213 )
2017-05-18 19:05:46 +01:00
Dan Abramov
fd2a800f76
Disable Uglify reduce_vars ( #2200 )
2017-05-17 23:24:07 +01:00
Dan Abramov
d9a2974574
Tidy up some build logs ( #2197 )
2017-05-17 20:10:17 +01:00