Commit Graph

288 Commits

Author SHA1 Message Date
Marius Craciunoiu
e530598f85 Fix sass importLoaders (#8281) 2020-01-30 15:50:01 -08:00
Simon Donaldson
0327d8952a Fix CSS font-face minification (#8106) 2019-12-08 22:21:47 -08:00
Ian Schmitz
82009f570d Bump webpack-dev-server (#7988) 2019-11-24 14:18:33 -08:00
Ian Schmitz
58b4738a49 Bump dependencies (#7986) 2019-11-15 20:15:52 -08:00
Brody McKee
4c0c81953d Add template support (#7716)
* Add template support

* Update templates version check

* Update TypeScript template README
2019-10-24 15:17:41 -07:00
Andreas Cederström
f79f3031c8 Bump styling related loaders (#7876) 2019-10-24 14:00:52 -07:00
Endi
7690af5526 Upgrade terser & enable parallel minification in wsl (#7857) 2019-10-21 10:41:09 -06:00
Sean Baines
f337accd36 Move unused eslint webpack import into @remove-on-eject block (#7856) 2019-10-21 09:44:48 +02:00
Robert van Steen
889df8e65b Fix absolute paths issue in Jest (#7822) 2019-10-13 19:59:41 -06:00
Justin Grant
09cbb89d44 Add Babel sourcemap to resolve VSCode debugging issues (#7022) 2019-10-10 09:20:18 +03:00
Jacob M-G Evans
88cf8cd64e Support production profiling with React Developer Tools (#7737)
* Added the alias for profiling and output change to keep the classNames and functionNames for human readbility

* defined isEnvProductionProfile with other isEnv checks

* moved the keep_classnames and keep_fnames to terserOptions scope

* resolve merge conflict for yarn.lock.cache

* revert yarn.lock.cache to master yarn.lock.cache
- git checkout origin/master -- packages/create-react-app/yarn.lock.cached

* Comment and Boolean Check
- I clarified the comment and specified the use case
- Changed the environment check to check for the specific true rather than
the assumed primitive value as before.

* Replaced env with flag
- Per suggestion --profile flag used instead of env variable PROFILE_APP

* documentation in available scripts section with suggested information

* resolved a local git issue. Fixed documentation error.

* moved documentation to suggested file
- Added a brief summary of profiling in available scripts section.
The summary references the production-build document. Which is the
file I moved the new documentation into under a new Header for production support.

* Update production-build.md


Co-authored-by: Ian Sutherland <ian@iansutherland.ca>
2019-10-02 21:53:41 -06:00
Robert van Steen
7e2b6b16df Support setting baseUrl to root directory (#7755) 2019-10-02 10:48:34 +03:00
Lewis Llobera
fefd7169e9 Fix variable name casing in fileTransform (#7752) 2019-09-30 11:08:28 +03:00
Laurin Quast
6533a6db4a Update logic and log errors for EXTEND_ESLINT (#7530) 2019-09-27 11:26:22 +03:00
Kent C. Dodds
42ee7212d2 set output.globalObject to 'this' (#7742)
Closes #7741
2019-09-26 16:24:48 -06:00
Samuel Meuli
93150c5135 Add "entrypoints" key to asset manifest (#7721) 2019-09-24 10:56:26 -06:00
Iguchi Tomokatsu
6f5221c2d7 Enable .eslintignore with extend flag (#7562) 2019-09-24 10:41:05 +03:00
Lewis Llobera
05f7924398 Remove 'shortcut' link type before 'icon' (#7707) 2019-09-20 09:51:27 -06:00
Doug Ross
4d533d4b92 Change runtime chunk name separator from tilde to dash (#7679) 2019-09-13 16:46:35 -07:00
Jannis Hell
8b7b819b4b Use const instead of var in env.js (#7526) 2019-09-13 16:37:32 -07:00
Tomáš Szabo
71c4d116fa Minor performance improvements (#7587)
- use ESLint cache
- remove useless `watch` option in fork-ts-checker
2019-09-10 22:44:24 -07:00
Brock Wills
c9b95047b9 Explicitly check that EXTEND_ESLINT is true (#7538) 2019-09-08 20:27:06 -07:00
Jerome Leclanche
bb31710123 Disable babel-loader's cacheCompression (#7633) 2019-09-08 18:48:30 -07:00
Ian Schmitz
cbaed7f9ff Fix ESLint 6 support (#7513)
* Remove extends restriction to fix ESLint 6 support

* Attempt to resolve CI errors
2019-08-13 11:24:29 -06:00
Andrea Puddu
efaee65e90 Fix RegExp from navigateFallbackBlacklist (workbox) (#7176)
Exclude URLs that contains a "?" character.
2019-08-08 16:07:50 -06:00
Jack Cross
ea2bcb7f59 Use readConfigFile instead of require for tsconfig (#7248) 2019-08-07 21:00:56 +03:00
Andrew Luca
914c95e87f Resolve relative paths for preprocessor styles (#5829)
preprocessor will output sourceMap by default
then check if sourceMaps are needed on resolve-url-loader

Fixes #4653
2019-08-05 20:28:09 -07:00
Sibiraj
066053c8b7 Set jsonpFunction to prevent conflicts (#5951) 2019-08-05 11:24:46 +03:00
Brody McKee
404af90d9a Add ESLint 6 support (#7415) 2019-07-28 15:05:54 +03:00
Brody McKee
3495286f8f Allow extending config used in eslint-loader (#7036) 2019-07-16 12:17:52 +03:00
Sudhir Mitharwal
dc50dd320e Allow title to be set when importing SVGs (#7118) 2019-07-15 17:54:19 +03:00
Min ho Kim
7c0dfef237 Fix various typos (#7355) 2019-07-15 17:12:35 +03:00
Peter Bengtsson
9d70c7afab Add environment variable to control image inlining threshold (#6060)
Fixes #3437
2019-06-17 21:25:39 -07:00
Maël Nison
b36d1ea1aa Adds the configuration for PnP/Typescript (#6856)
* Adds the configuration for PnP/Typescript

* Adds the header

* Bumps ts-pnp

* Bumps fork-ts-checker-webpack-plugin
2019-05-01 15:04:44 -06:00
Cory Reed
a2ae8a79c0 Remove Object.assign from MiniCssExtractPlugin options (#6854) 2019-04-29 09:31:50 -06:00
Dallon Feldner
785dd47937 Generate SVG component name in Jest fileTransform (#6706) 2019-04-25 15:35:03 -06:00
Robert van Steen
e7a2d6168a Set baseUrl from jsconfig.json/tsconfig.json (#6656)
* Set baseUrl from jsconfig.json/tsconfig.json

* Resolve the path for loading modules

* Add tests for jsconfig.json

* Add jsconfig.json

* Update packages/react-scripts/scripts/start.js

* Move baseUrl test to config folder

* Remove alias test

* Use chalk from react-dev-utils

* Add lost absolute file for typescript baseUrl test

* Update packages/react-scripts/config/modules.js

* Update other references of useTypeScript to hasTsConfig

* Fix casing of TypeScript

* Keep respecting NODE_PATH for now to support multiple module paths.

* Add test for NODE_PATH

* Add fallback if NODE_PATH is not set.

* Fix node path behavior tests

* Remove debugging code from behavior test suite

* Remove more debugging code

* Show NODE_PATH deprecation warning during build


Co-authored-by: Ian Sutherland <ian@iansutherland.ca>
Co-authored-by: Brody McKee <mrmckeb@users.noreply.github.com>
Co-authored-by: Jack Zhao <jzhao@fb.com>
2019-04-16 15:08:24 -06:00
Ian Sutherland
9048dd66a0 Move list of files under files key in asset manifest (#6821) 2019-04-15 21:35:25 -06:00
Travis Fischer
50c1884e62 Fix react-scripts peer dependencies link local issue (#6579) (#6580) 2019-04-15 20:59:12 -06:00
Hrusikesh Panda
550274e307 Adds PostCSS Normalize (#5810)
* Add postcss-normalize plugin

* Configure PostCSS Normalize

* Add documentation

* Include the doc in sidebar

* Fix the id in sidebar.json

* Update adding-css-reset.md


Co-authored-by: Jack Zhao <jzhao@fb.com>
Co-authored-by: Ian Sutherland <ian@iansutherland.ca>
2019-04-05 10:23:59 -06:00
Endilie Yacop Sucipto
3e336d91e0 fix: terser-webpack-plugin hanging on WSL (#6732)
* fix: terser-webpack-plugin hanging on WSL

* nits

* Merge branch 'master' into terser-parallel-bug-wsl

Co-authored-by: Jack Zhao <jzhao@fb.com>
2019-04-04 23:24:27 -06:00
Ian Sutherland
001c23eff4 Enable futureEmitAssets in webpack config (#6696) 2019-04-04 14:35:48 -06:00
Ian Schmitz
eee8491d57 Add TypeScript linting support (#6513)
* Initial pass adding typescript-eslint

* Add warning to shared rule set

* Add documentation for setting up VSCode extension

* Provide tsconfig path to typescript-eslitn
2019-03-14 21:17:17 -06:00
Kelvin Jin
88d6f029bd Add empty mock for http2 (#5686) 2019-03-13 19:50:19 -06:00
Ian Schmitz
1a04b96795 Type check JSON files (#6615) 2019-03-11 10:20:00 -06:00
Ian Sutherland
1548a0a92e Reapply "Speed up TypeScript v2 (#6406)" (#6586)
This reverts commit b2cf28b7f1 and reapplies #6406.
2019-03-06 17:46:38 -07:00
Ian Sutherland
b2cf28b7f1 Revert "Speed up TypeScript v2 (#6406)" (#6585)
This reverts commit 6a5b3cdaaa.
2019-03-06 17:33:17 -07:00
Ian Schmitz
6c8e2e53c5 Use contenthash instead of chunkhash for better long-term caching (#6387) 2019-02-20 18:24:19 -08:00
Jack Zhao
28f5427979 revert css sourcemaps in development (#6472)
This fixes #6399.
2019-02-20 16:16:18 -05:00
Ian Schmitz
6a5b3cdaaa Speed up TypeScript v2 (#6406)
* Revert "Revert "Speed up TypeScript projects (#5903)""

This reverts commit 544a5943ce.

* Move fork-ts-checker dep to react-dev-utils

* Convert WebpackDevServerUtils.createCompiler to take in options arg

* Update README.md for react-dev-utils
2019-02-18 16:31:44 -08:00