Commit Graph

30 Commits

Author SHA1 Message Date
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
Florent Cailhol f1092ad516 Update prettier toolchain 2018-03-26 16:56:10 +02:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Florent Cailhol 40ee8c76d2 Use MD4 for hashing 2018-02-22 11:27:11 +01:00
ruszki 83f772a611 Remove footer from source maps and eval 2018-01-30 22:46:23 +01:00
Florent Cailhol 77bb4c0055 Deprecate forEach* and map* methods 2018-01-23 22:19:59 +01:00
Tobias Koppers a0ef93f939 aggregate all crypto hash usages into util/createHash
try to avoid calling hash.update with short strings
2017-11-23 11:09:17 +01:00
Tobias Koppers 4597805222
Merge branch 'next' into master 2017-11-11 19:00:05 +01:00
Tobias Koppers f7c2f8e470 Update code style to arrow functions 2017-11-08 11:56:01 +01:00
Stephan Badragan f0b81cbd34 fixing code style issue 2017-10-20 20:50:28 +01:00
Stephan Badragan 68acd41bff passing namespace argument to contructors of dev tool plugins 2017-10-19 13:23:28 -07:00
Stephan Badragan 72b28aa1c3 passing devtoolNamespace through instead of setting it statically 2017-10-18 23:30:37 +01:00
Stephan Badragan f925032d5a adding `output.devtoolNamespace` option
When loading multiple libraries built with webpack, you can run into
collisions of the sourcemap file paths. For examle, both have
"webpack:///src/index.js".

This change addresses the problem by introducing a new output option
`output.devtoolNamespace` which defaults to `output.library` when
not specified. The defaults moduleFilenameTemplates in all the
sourcemap plugins have been modified to start with:
"webpack://[namespace]/...", where [namespace] will be replaced by
the `output.devtoolNamespace`.

Notice that there are only two slashes following "webpack:" now.
This is to make it behave just as before when not building with a
namespace. When building with a namespace you only get the two
slashes, but from what I've seen the chrome dev tools only care
about the first 2 slashes anyways.

Discussed with sokra here:
https://github.com/webpack/webpack/issues/5767
2017-10-18 01:14:40 +01:00
Tobias Koppers e8bc9c2b3b use a Set for Module.chunks 2017-04-18 23:27:25 +02:00
e-cloud 52055ba07e refactor: dead code elimination
remove those code not defined but used;
remove unused code
2017-04-11 19:43:05 +08:00
SendilKumar N f962eee840 fixing comments 2017-04-04 10:18:43 +02:00
SendilKumar N dbf4c03eb2 refactor(ES6): ModuleFilenameHelpers 2017-04-04 10:18:43 +02:00
Wout Mertens 2596b329b6 Prevent request names from breaking comments
Using `/*` as comment delimiters allows request names to terminate a comment early, like in https://github.com/carteb/carte-blanche/pull/262.
2016-06-07 11:21:36 +02:00
Kenny Tran eebc5ceaf6 Fix no-redeclare in code 2016-01-18 18:57:42 -08:00
Evgeny Shpilevsky cbd0ba230c Fix fail when undefined module is coming to footer generator
Fix issue #954
2015-10-28 13:36:01 +03:00
Tobias Koppers 5cd6e7d0b3 fixed a few linting issues 2015-07-16 00:39:56 +02:00
Tobias Koppers f7d799adb4 rebeautify without spacing after keyword 2015-07-16 00:19:23 +02:00
Avi Haiat 0a340f2b1a feat(app): Beautify all lib files 2015-07-13 01:20:09 +03:00
Avi Haiat 2335b1d45f fix tab 2015-07-07 17:36:25 +03:00
Avi Haiat 9db54577ad feat(app): devtool(Fallback)ModuleFilenameTemplate can now also be defined as function
The function will be passed an object with the following properties:
- identifier
- shortIdentifier
- resource
- resourcePath
- absoluteResourcePath
- allLoaders
- query
- moduleId
- hash
2015-07-07 15:41:12 +03:00
Tobias Koppers cebd3b9722 added linting 2015-04-23 23:55:50 +02:00
Tobias Koppers 348c38b3f9 allow missing source in SourceMap #954 2015-04-08 15:10:09 +02:00
Sebastien Barre 9cbce108f1 Factorize code with UglifyJSPlugin 2015-03-20 14:00:39 -04:00
Tobias Koppers 15e83490b8 Find duplicates globally. Don't fallback shortest.
fixes #363
2014-07-26 17:54:00 +02:00
Tobias Koppers d7e50e5da3 Better filenames in dev tools 2014-07-18 13:31:50 +02:00