Commit Graph

46 Commits

Author SHA1 Message Date
Florent Cailhol 20406a4295 Update ESLint 2018-07-31 11:43:07 +02:00
ferhat elmas 3e03edc2cf fix(hot): log messages
group arguments of operator or (||)
otherwise, nonempty string is always true
2018-07-09 22:20:50 +02:00
alberto 10ff2c3b3f Consolidate eslint config in one file. 2018-04-02 13:24:58 +02:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Bruno Abreu 92e36150a7 Fix bluebird warning in hot/signal 2017-12-29 12:13:45 -02:00
Ryan Harvey b093f023f8 only group HMR module updates if name contains loaders 2017-07-13 12:43:25 -05:00
Ryan Harvey 6c5dc1b4ee respect log level in HMR client log groups 2017-07-13 12:41:55 -05:00
Ryan Harvey 8d86864f66 fix lint error 2017-07-11 21:36:09 -05:00
Ryan Harvey 8789f59927 display HMR module logger message as a collapsed group 2017-07-11 15:49:29 -05:00
Ryan Harvey 066b0ace51 hide loaders in HMR log message 2017-07-10 15:46:24 -05:00
Bogdan Luca 922ee1af25 Moved HMR logging to a module, added possibility to set log level. 2017-05-31 12:00:41 +03:00
题叶 5345a38c36 show error when hotOnly HMR fails 2017-05-26 04:06:14 -04:00
Tobias Koppers 8e69a80847 code linting 2017-01-11 12:29:01 +01:00
Sean Larkin 7327ee608a chore(eslint): added eslint-node-plugin (#3652) 2016-12-30 17:13:49 -06:00
Sean Larkin aa8d01bf8d refactor(eslint): Added no-unsed-vars, env specific .eslintrc's for buildin & hot (#3636)
* refactor(eslint): Added no-unsed-vars, env specific .eslintrc's for buildin & hot

* This change allows for buildin to now be part of the lint test by addition of an extra .eslintrc file which extends existing but sets es6 to false
* Turned on no-unused-vars for eslint, and then removed all warnings from turning that feature on
* Was getting notified of errors in "quote" property in eslintrc, so changed to correct value from error to 2.

* beautify

* swap invalid eslint config val
2016-12-30 09:43:49 -06:00
Tushar Sonawane 6b39a5325c fix 'no-inner-declarations' warnings 2016-10-29 19:30:01 +05:30
Tobias Koppers de4bd221af follow up changes for #2848 2016-08-17 12:54:54 +02:00
Diogo Franco 803a87fd0e Add missing return
The module.hot.apply promise chain was not correctly merged into the module.hot.check() chain.
2016-08-07 00:31:24 +09:00
Tobias Koppers 6b4ced42ad advertise the NamedModulesPlugin for HMR 2016-07-20 15:19:01 +02:00
Tobias Koppers bd35d4f65d allow to ignore errors and fire events 2016-07-02 17:30:21 +02:00
Tobias Koppers 1cd6c4eeba better error messages in HMR
events for ignored updates
warnings to console when updates are ignored
2016-06-24 11:17:25 +02:00
Diogo Franco (Kovensky) 216b435c25 only-dev-server: Remind user that hot updates stopped
If a previous update fails or aborts, the webpackHotUpdate handler stops
calling check(). This is fine in dev-server.js, as any failure will
cause a window.location.reload() anyway, but only-dev-server.js will
complain once and then silently not work anymore.
2016-06-21 09:51:43 +09:00
Tobias Koppers cf00a1a22d rewrite cases where js beautify and eslint disagree on formatting 2016-06-20 21:46:27 +02:00
Simen Bekkhus b1bdd6989f Use eslint's indent rule 2016-06-20 08:21:00 +02:00
Diogo Franco (Kovensky) 621d656573 Fix only-dev-server.js's module.hot.apply call
It had not been updated to webpack 2's Promise ways, so the callback
never happened.
2016-06-16 00:10:47 +09:00
Spencer Elliott 70f01242f1 Use an EventEmitter instead of `window.addEventListener` 2015-11-02 22:42:26 -05:00
Tobias Koppers 431a4c791c Merge branch 'master' into webpack-2
Conflicts:
	hot/dev-server.js
	hot/only-dev-server.js
	hot/poll.js
	hot/signal.js
	lib/ChunkTemplate.js
	lib/HotModuleReplacement.runtime.js
	lib/HotModuleReplacementPlugin.js
	lib/JsonpMainTemplatePlugin.js
	lib/MainTemplate.js
	lib/NormalModule.js
	lib/Parser.js
	lib/RecordIdsPlugin.js
	lib/WebpackOptionsApply.js
	lib/dependencies/RequireEnsureDependency.js
	lib/node/OldNodeWatchFileSystem.js
	lib/optimize/OccurrenceOrderPlugin.js
	package.json
2015-07-17 09:30:37 +02:00
Tobias Koppers eba4727733 beautify stuff 2015-07-16 00:27:37 +02:00
Tobias Koppers 2245c4acca Promise based chunk loading API
don't flag entry module with `0` id anymore
use extra argument in chunk instead
this allows to require entry points
2015-06-13 11:45:28 +02:00
Tobias Koppers 5b1d9ef3bb linting 2015-05-21 22:58:22 +02:00
Tobias Koppers 289db96b36 Make webpack ready for node.js HMR. 2015-03-11 23:48:00 +01:00
mendenhallmagic d653310eef Fix typo in hot plugins: Propably => Probably 2015-02-12 21:30:24 -06:00
Tobias Koppers 52f9dcdab2 Warn when restarting the webpack-dev-server while on a page. 2015-01-18 10:57:31 +01:00
Tobias Koppers d746f0d279 fixes #565 2014-11-03 21:48:58 +01:00
Tobias Koppers 8fa9daf067 Fix function definition for strict mode
fixes #453
2014-10-12 12:24:03 +02:00
Tobias Koppers a616a5a67c fixed spacing 2014-10-12 12:01:10 +02:00
Nick Dima 513f551763 Shim addEventListener for older browsers 2014-10-09 16:18:05 +02:00
Nick Dima ec7ebe0ba8 Replace window.onmessage with window.addEventListener 2014-10-07 18:20:02 +02:00
Tobias Koppers e43a76a65e added hot-only dev-server #418 2014-09-03 13:17:37 +02:00
Tobias Koppers b8fef9a1d7 allow to ignoreUnaccepted modules in HMR
fixes #418
2014-08-29 15:52:38 +02:00
Tobias Koppers 6185147cb5 error when HMR is not enabled but entry added 2014-08-27 16:50:40 +02:00
Tobias Koppers 69cc31c1e2 fixed HMR bug 2014-08-25 13:38:33 +02:00
Tobias Koppers 1bc0b8c0f4 added __webpack_hash__
fixes #422
2014-08-25 09:50:26 +02:00
Johannes Ewald b84b3486b7 Add logging about downloading the hot manifest 2014-08-18 14:30:47 +02:00
Tobias Koppers d8fc8472f6 hot module replacement with code splitting #26 2013-06-19 16:09:46 +02:00
Tobias Koppers 8b2301056d added hot module replacement, fixes #26 2013-06-19 13:49:57 +02:00