Commit Graph

69 Commits

Author SHA1 Message Date
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