Commit Graph

576 Commits

Author SHA1 Message Date
Tobias Koppers 4e90f43596 add hash method to concatenated module
fixes #5184
2017-07-07 11:48:52 +02:00
Tobias Koppers a6e4cddb79 Merge pull request #5137 from mzgoddard/concatenated-file-dependencies
Include module file and context dependencies in ConcatenatedModule
2017-07-01 14:51:07 +02:00
Johannes Ewald 15ccfb68ef
Improve ModuleConcatenation bailout messages 2017-06-28 15:20:06 +02:00
Tim Sebastian 66f0f6436a refactor commonsschunk plugin to handle set instead of array 2017-06-24 11:39:46 +10:00
Michael "Z" Goddard 9ea40f0eea
Include module file and context dependencies in ConcatenatedModule
As ModuleConcatenationPlugin removes the concatenated modules from a
compilation, the file and context dependencies of those modules needs
to be stored in the ConcatenatedModule for webpack to be able to watch
those paths.
2017-06-22 10:43:28 -04:00
jeonghwan Lee ab9e938367 Preserve assets from concatenated module 2017-06-22 12:32:59 +09:00
Tobias Koppers 2d82b00767 Merge pull request #5113 from webpack/feature/better-error-message
better error message for missing internal names
2017-06-21 23:23:25 +02:00
Tobias Koppers 25a904bf88 Merge pull request #5083 from timse/sortable-set
Sortable set
2017-06-21 22:50:47 +02:00
Tim Sebastian 8f3d65aa5d fix linting/formatting issues 2017-06-21 08:12:22 +10:00
Tim Sebastian f7ffed8f3e allow to set chunks and use it in ConcatenatedModule 2017-06-21 08:12:22 +10:00
Tobias Koppers 245dcc3047 better error message for missing internal names 2017-06-20 16:13:32 +02:00
Tobias Koppers 9feda63d13 Merge pull request #5028 from webpack/feature/externalize_uglify_plugin
feat(uglify): move uglify to external plugin from webpack-contrib
2017-06-19 17:04:27 +02:00
Tim Sebastian fc20348f97 unite iteration through modules into one loop 2017-06-18 22:46:06 +10:00
Tim Sebastian 083843e0ad remove code that pushes arrays of dependencies into dependencies
the actua dep population is done in lines 155-159
2017-06-18 22:45:08 +10:00
Tim Sebastian bd8c6cf158 make sure ConcatenatedModules also uses SortedSet
fix tests that was falsy - per default chunks are flagged as sorted in module
however this only holds true as they are initialized empty. Concatenated module however
has initial modules and therefore is not guaranteed to be ordered, the flags should therfor be false.
Using SortedSet fixes this as a sideeffect
2017-06-18 14:34:32 +10:00
Tobias Koppers 28f826a4e7 consistent order 2017-06-14 23:20:40 +02:00
Tobias Koppers 5d4ba56c5f Allow scope hoisting to process modules in multiple chunks 2017-06-14 22:46:26 +02:00
Tobias Koppers ec966354ca rename shorthand properties correctly
fixes #5027
2017-06-13 13:38:12 +02:00
Tobias Koppers 443b62ffa7 add special case for async without name 2017-06-09 16:04:52 +02:00
Sean Larkin dc315e5f6d feat(uglify): move uglify to external plugin from webpack-contrib 2017-06-07 12:35:50 -05:00
Tobias Koppers 8c7808991c fix lint error 2017-06-07 13:14:13 +02:00
Tobias Koppers 9060137035 generate nicer names 2017-06-07 12:57:15 +02:00
Tobias Koppers 9b58b7a705 generate correct namespace objects
fixes #5020
2017-06-07 12:56:53 +02:00
Tobias Koppers 1c538f9d84 fixes #5000 2017-06-06 11:18:34 +02:00
Tobias Koppers 4372819de1 libIdent should be rootModule 2017-06-05 14:01:19 +02:00
Tobias Koppers 9cd0cacd14 Merge branch 'master' into next 2017-06-03 16:36:38 +02:00
Tobias Koppers 72e94e32a4 Merge pull request #4965 from ymichael/duplicate-blocks
CommonsChunkPlugin can cause duplicate chunk blocks
2017-06-03 09:53:30 +02:00
Tobias Koppers 302289ce24 Merge branch 'master' into next 2017-06-02 16:28:22 +02:00
Tobias Koppers d3a0fc980e Merge pull request #4984 from webpack/bugfix/splitting-compilation
followup from #4968
2017-06-02 12:03:06 +02:00
Tobias Koppers 90159b0d37 Merge pull request #4982 from webpack/perf/optimize
optimize optimization plugins
2017-06-02 11:54:13 +02:00
Tobias Koppers 3caf4675a0 Upstream changes from https://github.com/jantimon/html-webpack-plugin/pull/670#issuecomment-301484908 2017-06-02 11:09:17 +02:00
Tobias Koppers 890a507b08 optimize OccurenceOrderPlugin 2017-06-02 01:24:55 +02:00
Alex Hughes cbc706ba98 Upstream changes from https://github.com/jantimon/html-webpack-plugin/pull/670#issuecomment-301484908 2017-06-01 16:38:27 +02:00
Tobias Koppers b08762b729 optimize optimization plugins 2017-06-01 16:35:07 +02:00
Tobias Koppers cc8e729ff4 detect conflicts with other variables
fixes #4967
2017-05-31 16:46:25 +02:00
Michael Yong 7834e6cd57 CommonsChunkPlugin: Don't allow blocks to contain duplicate chunks
- Add configCase to repro failure
2017-05-30 21:11:42 -07:00
Tobias Koppers 6a0e587768 spacing 2017-05-28 23:51:23 +02:00
Tobias Koppers 44bf6c245f update graph correctly 2017-05-28 17:18:41 +02:00
Tobias Koppers d8539561fd add optimization bailout info
track optimization bailout in concat plugin
2017-05-28 15:25:07 +02:00
Tobias Koppers b4d25208f4 filter modules from modules array 2017-05-24 11:22:42 +02:00
Tobias Koppers 1c3bef901c merge PR #4884 again
by @filipesilva
2017-05-22 20:04:23 +02:00
Tobias Koppers 5d9eef85c7 improvements from review 2017-05-21 09:15:43 +02:00
Tobias Koppers 4a25a17bb6 improvements from review 2017-05-21 09:15:42 +02:00
Tobias Koppers c41ab084f6 fix export mangling in concatenated modules 2017-05-21 09:15:42 +02:00
Tobias Koppers 9b2a9fa786 Scope Hoisting 2017-05-21 09:15:41 +02:00
Tobias Koppers 2bd2d2844c improve a few issues
from review by @Kovensky
2017-05-20 14:54:42 +02:00
Tobias Koppers 8d3efe7d63 Merge branch 'next' into perf/modules-set 2017-05-16 14:37:03 +02:00
Tobias Koppers e1bac32c19 Use a Set to store modules in a chunk 2017-05-16 11:50:50 +02:00
Tobias Koppers b45588bc11 CommonsChunkPlugin in async mode doesn't select initial chunks
fixes #4795
2017-05-04 10:50:46 +02:00
Tobias Koppers 616777b520 fix spacing issue 2017-04-21 18:47:59 +02:00
Tobias Koppers 7ca1297e11 Use a Set in RemoveParentModulesPlugin for performance 2017-04-18 23:28:16 +02:00
Tobias Koppers e8bc9c2b3b use a Set for Module.chunks 2017-04-18 23:27:25 +02:00
Tim Sebastian ed51e2ff2c unify makeRelative method used in aggresivesplittingplugin and recordsidsplugin 2017-04-05 23:38:15 +10:00
Tobias Koppers e7c13d75e4 Merge pull request #4553 from timse/named-chunks-plugin
Named chunks plugin
2017-04-04 09:45:08 +02:00
Tim Sebastian 46f174b756 reuse logic as used in 2.2.1 to check what chunks should get their runtime extracted 2017-04-02 12:14:59 +10:00
Tim Sebastian 9f05520686 check splitData for null and undefined 2017-03-26 20:30:52 +11:00
Tim Sebastian b8e1981e09 allow chunk.id to be a number - or rather a non-null-something 2017-03-26 20:30:52 +11:00
Tobias Koppers 915c150f3a fix bug in MinChunkSizePlugin
fix #4532
2017-03-22 12:09:22 +01:00
Tim Sebastian d7ae9adfb2 do not incorporate chunks without modules 2017-03-18 12:20:08 +11:00
Stephen Hurwitz 87702a29ad Updates UglifyJs to 2.8.x to accept additional compress options
Bumps the minimum version of UglifyJs and substitutes `.compress()` for
`.transform()` as recommended. In addition to a new test covering
`compress` options this commit also contains updates to make existing
tests pass with the update.
2017-03-04 18:31:39 -08:00
Tim Sebastian ff814e91b5 add comments to FlagIncludedChunksPlugin 2017-02-23 23:39:19 +11:00
Tim Sebastian 39575663b7 move chunk parents check up 2017-02-23 23:31:05 +11:00
Tim Sebastian 8d193c7097 improve wording in DedupePlugin error 2017-02-23 23:28:05 +11:00
Tim Sebastian 28b4972d53 replace `chunk.hasRuntime` with `chunk.parents.length === 0`
see https://github.com/webpack/webpack/pull/4310\#discussion_r102400692
2017-02-22 21:38:45 +11:00
Tim Sebastian 59ea80ff9a remove `chunk.isInitial` constraint before moving blocks 2017-02-22 21:35:50 +11:00
Tim Sebastian e1ea0a717c implement review feedback 2017-02-22 21:32:31 +11:00
Tim Sebastian 018ca1ad2c improve comments 2017-02-22 00:13:21 +11:00
Tim Sebastian 61ce0f79c1 apply review feedback 2017-02-22 00:13:21 +11:00
Tim Sebastian cc1636f141 make variable and method names clearer 2017-02-22 00:13:20 +11:00
Tim Sebastian efa8b52293 use children option instead of `selectedChunks === false` 2017-02-22 00:13:20 +11:00
Tim Sebastian 5838f56d0f correct comment 2017-02-21 23:47:55 +11:00
Tim Sebastian ec736bfe21 move actual apply method to the top, to easier find where things happen 2017-02-21 23:47:55 +11:00
Tim Sebastian c97b3de912 add better validation for options, rename async to prevent future clash with reserved words 2017-02-21 23:47:54 +11:00
Tim Sebastian 10cea76e1e fix wrong assignment of filenameTemplate in constructor 2017-02-21 23:47:54 +11:00
Tim Sebastian 9a7a6b93bd add comments and clean up a bit 2017-02-21 23:47:54 +11:00
Tim Sebastian bcc10e8aa6 extract the last step of reconnecting the chunks to own methods 2017-02-21 23:47:54 +11:00
Tim Sebastian 9f18ea9b15 split up and extract default linking between modules and chunks 2017-02-21 23:46:51 +11:00
Tim Sebastian 24b8aebb74 extract reallyUsedModules creation to own simplified methods 2017-02-21 23:46:51 +11:00
Tim Sebastian 15be539d24 fix up method call 2017-02-21 23:46:51 +11:00
Tim Sebastian 24ecaf56be cleanup unused variables 2017-02-21 23:46:50 +11:00
Tim Sebastian 3dc08aec2a extract creation of async chunk 2017-02-21 23:46:50 +11:00
Tim Sebastian 063c54f546 extract creation of usedChunks 2017-02-21 23:46:50 +11:00
Tim Sebastian d53c882929 extract and simplify definition of the common chunk 2017-02-21 23:46:50 +11:00
Tim Sebastian e9ac46dc26 normalize options for commons chunk plugin 2017-02-21 23:46:50 +11:00
Tim Sebastian 952f04d90f node v4 fails to reassignes const in for-of loops properly 2017-02-19 13:18:01 +11:00
Tobias Koppers d0f1f6e770 Merge pull request #4134 from SebastianS90/uglifyjs-extract-comments
UglifyJsPlugin: extract comments to separate file
2017-02-15 15:07:54 +01:00
Simon Sperling c1346f5aa2 fix spelling error in MinChunkSizePlugin 2017-02-13 16:30:27 +01:00
Sebastian Schweizer d2461dab06 improve code (review) 2017-02-10 23:16:20 +01:00
Sebastian Schweizer 71933e979e UglifyJsPlugin: extract comments to separate file
License comments use up a lot of space, especially when using many small
libraries with large license blocks. With this addition, you can extract
all license comments to a separate file and remove them from the bundle
files. A small banner points to the file containing all license
information such that the user can find it if needed.

We add a new option extractComments to the UglifyJsPlugin.
It can be omitted, then the behavior does not change, or it can be:
- true: All comments that normally would be preserved by the comments
    option will be moved to a separate file. If the original file is
    named foo.js, then the comments will be stored to foo.js.LICENSE
- regular expression (given as RegExp or string) or a function
  (astNode, comment) -> boolean: All comments that match the given
    expression (resp. are evaluated to true by the function) will be
    extracted to the separate file. The comments option specifies
    whether the comment will be preserved, i.e. it is possible to
    preserve some comments (e.g. annotations) while extracting others or
    even preserving comments that have been extracted.
- an object consisting of the following keys, all optional:
  - condition: regular expression or function (see previous point)
  - file: The file where the extracted comments will be stored. Can be
      either a string (filename) or function (string) -> string which
      will be given the original filename. Default is to append the
      suffix .LICENSE to the original filename.
  - banner: The banner text that points to the extracted file and will
      be added on top of the original file. will be added to the
      original file. Can be false (no banner), a string, or a function
      (string) -> string that will be called with the filename where
      extracted comments have been stored. Will be wrapped into comment.
      Default: /*! For license information please see foo.js.LICENSE */
2017-02-10 11:59:56 +01:00
Tobias Koppers be4f27c51d Merge pull request #4200 from timse/allow-to-supress-uglifyjs-warnings
Allow to supress uglifyjs warnings
2017-02-09 14:08:01 +01:00
Tobias Koppers 93ac8e9c36 Merge pull request #4205 from timse/use-let-const-as-blockscoped-variables
Use let const as blockscoped variables
2017-02-08 09:44:03 +01:00
Simon Legner ea4be07d45 Link documentation to webpack.js.org
Replaces webpack.github.io links with links to the new documentation.
2017-02-07 10:07:01 +01:00
CUNTIE 3fc1f42b53 fix AggressiveSplittingPlugin logical bug 2017-02-07 09:24:36 +08:00
Tim Sebastian 5321ae6902 fixup AggressiveSplittingPlugin 2017-02-05 13:10:08 +11:00
Tim Sebastian 8e7022b443 refactor MinChunkSizePlugin to be more functional 2017-02-05 12:20:23 +11:00
Tim Sebastian bd386ecf06 remove leftover console.log in ChunkModuleIdRangePlugin 2017-02-05 12:20:23 +11:00
Tim Sebastian 1d78f990a6 use const where applicable in UglifyJsPlugin 2017-02-05 12:20:22 +11:00
Tim Sebastian 92364dc0f7 avoid reassigning stream with different value in UglifyJsPlugin 2017-02-05 12:20:22 +11:00
Tim Sebastian 104398f87a avoid reassigning files with different value in UglifyJsPlugin 2017-02-05 12:20:21 +11:00
Tim Sebastian 1028043e38 make LimitChunkCountPlugin more functional avoid too much reassigning
add some doco for better understanding of what is happening
2017-02-05 12:20:21 +11:00
Tim Sebastian 0a0b72776d use const where applicable in EnsureChunkConditionsPlugin 2017-02-05 10:40:10 +11:00
Tim Sebastian 68ab778373 use const where applicable in ChunkModuleIdRangePlugin 2017-02-05 10:38:56 +11:00
Tim Sebastian e42b603c46 make use of block scoped nature of let and const in AggressiveSplittingPlugin 2017-02-05 10:37:36 +11:00
Tim Sebastian 7968caa6b1 use const where applicable in AggressiveMergingPlugin 2017-02-05 10:33:54 +11:00
Tim Sebastian e107cc598a allow to filter uglify warnings by adding option "warningsFilter"
only works if "sourceMap" setting is true
2017-02-05 01:37:10 +11:00
Tobias Koppers 089356faa3 fixes a bug in OccurrenceOrderPlugin 2017-01-30 22:49:53 +01:00
Tobias Koppers b07dc3da27 Merge pull request #3745 from shubheksha/refactor-CommonsChunkPlugin
refactor(ES6): upgrade commonsChunkPlugin to ES6
2017-01-26 15:57:32 +01:00
Tobias Koppers d7384e2f6a removed unnecessary context argument 2017-01-25 23:11:07 +01:00
Tom910 665fbd0ca8 Fix todo comments 2017-01-25 22:47:11 +03:00
Tom910 74efa93d5f More refactoring Compilation.js and RemoveParentModulesPlugin.js 2017-01-25 22:39:24 +03:00
Tom910 588976d5e9 Deleting cache length size to loop 2017-01-24 22:39:38 +03:00
Shubheksha Jalan 8d315b1630 cleaned up some functions 2017-01-24 16:39:46 +05:30
Shubheksha Jalan 4b06eb94e9 fix merge commits 2017-01-24 16:17:12 +05:30
Tom910 eb87ae931d Refactoring and optimize RemoveParentModulesPlugin.js 2017-01-23 21:52:47 +03:00
Tobias Koppers 8e69a80847 code linting 2017-01-11 12:29:01 +01:00
Shubheksha Jalan bc6a6ad324 cleaned up a few functions 2017-01-10 17:18:36 +05:30
Shubheksha Jalan 15d6a5e7ea formatted the template string to remove extra whitespace and line breaks 2017-01-10 17:18:36 +05:30
Shubheksha Jalan 1f6431e4df refactor(ES6): changed lengthy error message string to template literal 2017-01-10 17:18:36 +05:30
Shubheksha Jalan 29bf3e72f3 refactor(ES6): upgrade CommonsChunkPlugin to ES6 2017-01-10 17:18:36 +05:30
Shubheksha Jalan 9215b6affd refactor(ES6): upgrade CommonsChunkPlugin to ES6 2017-01-10 17:18:36 +05:30
Shubheksha Jalan 126eb9158a refactor(ES6): upgrade OccurrenceOrderPlugin to ES6 (#3756) 2017-01-05 11:47:05 -06:00
Shubheksha Jalan a133c90b91 refactor(ES6) upgrade RemoveEmptyChunksPlugin to ES6 (#3765)
* refactor(ES6): upgrade RemoveEmptyChunksPlugin to ES6
2017-01-05 10:48:16 -06:00
Shubheksha Jalan 70bf6c2817 refactor(ES6): upgrade MinChunkSizePlugin to ES6 (#3757)
* refactor(ES6): upgrade MergeDuplicateChunksPlugin to ES6
2017-01-04 23:42:36 -06:00
Shubheksha Jalan 4149f10764 refactor(ES6): upgraded LimitChunkCountPlugin to ES6 (#3754) 2017-01-04 22:17:12 -06:00
Shubheksha Jalan 80e177a2a5 refactor(ES6): upgraded FlagIncludedChunksPlugin to ES6 (#3752) 2017-01-04 16:23:48 -06:00
Shubheksha Jalan 4699cccdae refactor(ES6): upgrade EnsureChunkConditionsPlugin to ES6 (#3751) 2017-01-04 16:21:38 -06:00
Shubheksha Jalan 771c6b2877 refactor(ES6): upgrade DedupePlugin to ES6 (#3749) 2017-01-04 15:18:39 -06:00
Shubheksha Jalan d1361ae078 refactor(ES6): upgrade AggressiveMergingPlugin to ES6 (#3732)
* refactor(ES6): upgrade AggressiveMergingPlugin to ES6
2017-01-04 15:18:16 -06:00
Shubheksha Jalan 7dae8fbc00 refactor(ES6): upgrade AggressiveSplittingPlugin to ES6 (#3743)
* refactor(ES6): upgrade AggressiveSplittingPlugin to ES6

* refactor(ES6): remove this hack and fix this value in arrow function
2017-01-04 13:15:54 -06:00
Shubheksha Jalan 61251de9c0 refactor(ES6): upgrade RemoveParentModulesPlugin to ES6 (#3731) 2017-01-04 12:44:01 -06:00
Shubheksha Jalan d7b97e86a1 refactor(ES6): upgrade ChunkModuleIdRangePlugin to ES6 (#3727) 2017-01-04 09:13:05 -06:00
Adam Markon 879adef6c7 refactor UglifyJSPlugin to ES6 class (#3717) 2017-01-03 23:53:37 -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
James Hartig 0676304822 Pass mangle options to ast.figure_out_scope in uglify 2016-12-16 16:19:06 -05:00
Tobias Koppers c87d3ec523 Merge pull request #3428 from webpack/feature/performance
performance improvements
2016-12-14 21:18:44 +01:00
Tobias Koppers f4ab7fc7e2 more performance improvements 2016-12-14 16:22:54 +01:00
Tobias Koppers da29d21ae4 performance improvements
breaking change: Module has now a "unbuild" method that must work correctly
2016-12-14 16:22:16 +01:00
Tobias Koppers d0beb306ee check chunk condition before moving into commons chunk 2016-12-14 13:59:47 +01:00
inuscript 4bf2ba46af revert this.async (avoid may breaking change) 2016-12-07 09:43:17 +09:00
inuscript d03203d260 change async variable name 2016-12-07 08:54:10 +09:00
inuscript dcff8c833f Fill available params on Deprecation notice 2016-12-06 19:55:48 +09:00
Tobias Koppers 91cbb4c288 removed DedupePlugin
it's no longer needed for npm3
and causes many issues
2016-11-15 09:25:58 +01:00
Tushar Sonawane 34c02a9c15 fix 'no-loop-func' warnings 2016-10-29 18:53:54 +05:30
Tobias Koppers f9b81a7509 make sure module moving don't hang in circular chunk dependencies
fixes #2990
2016-09-18 10:30:05 +02:00
Tobias Koppers a0a920d83f added experimental plugin to set custom module ids 2016-09-16 01:18:21 +02:00
Duncan Beevers e7a06a79e2 Log original and mapped filename+line+column on uglify error 2016-08-03 21:35:57 -05:00
Tobias Koppers 79eb404257 fixes webpack/extract-text-webpack-plugin#82
fixes webpack/extract-text-webpack-plugin#115
fixes webpack/extract-text-webpack-plugin#170
2016-07-15 21:59:24 +02:00
Tobias Koppers 2f618e733a refactoring and aggressive-splitting plugin 2016-07-13 11:03:14 +02: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
Tobias Koppers 7fdfdbd43b correct linting 2016-06-16 01:05:17 +02:00
Tobias Koppers ffd2d37efd changed defaults for uglifyjsplugin, no source mapping, no warnings 2016-05-29 12:17:59 +02:00
Tobias Koppers 1b459d91f5 move externals into chunk with entry
fixes #2314
maybe fixes #2066
fixes #2375
fixes #1673
2016-05-05 10:13:50 +02:00
Tobias Koppers 795092fcea fixed small mistake in array check 2016-04-11 00:38:18 +02:00
Tobias Koppers 996b6c80ae cache parent checks, check faster array for contain 2016-04-10 23:55:37 +02:00
Tobias Koppers 7a15344eb1 reverted new algorithm for removing modules from parent chunks 2016-04-10 23:38:41 +02:00
Max Kostow 6cbd6997d3 skip commonModules if minChunks===Infinity 2016-04-06 13:51:21 -04:00
Tobias Koppers 2d7a7adade use index instead of debugId
fixed chunk propagation
2016-02-24 23:57:42 +01:00
Tobias Koppers a867825774 new algorithm for removing modules from parent chunks
#1905
2016-02-24 23:23:34 +01:00
Tobias Koppers b93aacbecf DedupePlugin cannot be cached 2016-02-09 22:34:10 +01:00
Tobias Koppers c501b5d5af fixed #2011 2016-02-08 09:54:13 +01:00
hh9527 1021faf13c Fix #1983 : Object properties can be mangle now.
Use the following config:

```js
{
  plugins: [
    new webpack.optimize.UglifyJsPlugin({
        mangle: {
          props: {
            regex: /_$/
          },
        },
      }),
  ]
}
```
2016-02-08 09:52:10 +01:00
Ian Ker-Seymer d0c6e98dee
Use better error message for when given multiple args for CommonChunksPlugin 2016-01-21 23:01:00 -05:00
Kenny Tran eebc5ceaf6 Fix no-redeclare in code 2016-01-18 18:57:42 -08:00
Tobias Koppers ded70aef28 moves stuff from webpack-core to webpack-sources 2015-12-29 17:44:55 +01:00
Tobias Koppers e5c11c721e Merge branch 'webpack-1'
Conflicts:
	lib/optimize/CommonsChunkPlugin.js
	package.json
2015-11-20 21:35:37 +01:00
Tobias Koppers 181da3c004 fixed another bug with the CommonsChunkPlugin
when using multiple commons chunks
other optimization plugins doesn't optimize perfectly
2015-11-20 21:29:32 +01:00
Tobias Koppers 556872b38f fixed bug in CommonsChunkPlugin
when passing passing mixed existing and not existing names
2015-11-20 20:24:06 +01:00
Tobias Koppers 67656b90e2 split uglify-js from loader minimize, better shortcut defaults 2015-11-16 23:11:15 +01:00
Tobias Koppers 5879483eb1 fixed formating 2015-10-31 15:31:10 +01:00
Tobias Koppers 0f0ede8a2c removed deprecated parameters for plugins 2015-10-28 23:26:52 +01:00
Tobias Koppers 9dffb44c93 Merge branch 'master' into webpack-2 2015-10-28 22:33:11 +01:00
Sanghvi 6c3cd7750c Fix indentation in uglifyjs change 2015-10-12 18:34:13 -07:00
Sanghvi d1600176bd Reset uglify's base54 counters for each file 2015-10-12 16:47:49 -07:00
Tobias Koppers 7934faa181 Merge branch 'master' into webpack-2
Conflicts:
	.travis.yml
	bin/config-optimist.js
	package.json
	test/TestCases.test.js
2015-08-09 13:32:19 +02:00
Tobias Koppers 6782a1e2bb Merge pull request #1270 from bhamodi/master
Use secure links.
2015-08-08 13:00:43 +02:00
Tobias Koppers 44f919ecc7 Merge branch 'master' into webpack-2
Conflicts:
	test/statsCases/chunks/expected.txtT
2015-08-08 09:40:35 +02:00
Alberto Leal 4024689e63 Stronger check and override of comments in UglifyJsPlugin options
Fixes https://github.com/webpack/webpack/issues/324
2015-07-26 21:26:27 -04:00
Baraa Hamodi 3bcf17dca0 Use secure links. 2015-07-20 15:29:53 -07: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 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 daff7440a6 feat(app): Fix some obvious lint errors and warnings 2015-07-08 15:52:41 +03:00
Tobias Koppers 8cfeb51c30 refactoring and bug fixes 2015-07-07 00:11:13 +02:00
Tobias Koppers cf30eeeb0f Merge branch 'master' into webpack-2
Conflicts:
	lib/ChunkTemplate.js
	lib/Compilation.js
	lib/HotModuleReplacement.runtime.js
	test/TestCases.test.js
	test/statsCases/chunks/expected.txt
	test/statsCases/simple-more-info/expected.txt
	test/statsCases/simple/expected.txt
2015-07-01 00:44:17 +02:00
Tobias Koppers a04ffb9283 added (experimental) NamedModulesPlugin 2015-06-27 22:47:51 +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
Kenny Tran 0c663ae3d5 Remove undefined check for MinChunkSizePlugin 2015-05-27 10:10:27 -07:00
Kenny Tran 7a080e6f24 Add argument error handling in optimization plugins 2015-05-27 09:46:47 -07:00
Tobias Koppers 94ba35cb13 Merge branch 'master' into webpack-2
Conflicts:
	lib/WebpackOptionsApply.js
2015-05-22 00:19:16 +02:00
Kenny Tran 7edffc381d Small refactor for getting size
Currently, map is being called to extract sizes then reduce is called on that; so 2 iterations through the array. It is possible to solve this with only reduce: 1 iteration. reallyUsedModules probably won't ever be big enough for this to matter, so it comes down to readability.

I think doing a once-and-done reduce could be an improvement here. What do you guys think?
2015-05-21 12:39:08 -07:00
Tobias Koppers ff7848369a Merge branch 'master' into webpack-2
Conflicts:
	bin/webpack.js
	package.json
2015-05-10 20:41:04 +02:00
Tobias Koppers 1679218f80 fixed CommonsChunkPlugin
and added two explict vendor chunks example
2015-04-29 12:46:00 +02:00
Tobias Koppers f4b9d5f57a Merge branch 'master' into webpack-2
Conflicts:
	lib/Compilation.js
	lib/Compiler.js
	lib/DefinePlugin.js
	lib/HotModuleReplacementPlugin.js
	lib/Parser.js
	lib/node/NodeSourcePlugin.js
	lib/node/OldNodeWatchFileSystem.js
	package.json
2015-04-27 20:22:13 +02:00
Tobias Koppers 84b34151da emit an error when using the CommonChunksPlugin wrongly
#946
2015-04-26 22:47:47 +02:00
Tobias Koppers cebd3b9722 added linting 2015-04-23 23:55:50 +02:00
Tobias Koppers 962dddf966 fixed another issue with deduplication 2015-04-21 23:26:20 +02:00
Tobias Koppers 9c26ffe6a8 Merge branch 'master' into webpack-2
Conflicts:
	lib/Stats.js
2015-04-20 21:08:42 +02:00
Tobias Koppers 8d350b69a6 Merge pull request #984 from faller/patch-1
fix length judgment in MinChunkSizePlugin
2015-04-20 19:51:22 +02:00
Tobias Koppers 3419ddcb29 use dedupe plugin later in compilation
fixed webpack/style-loader#54
2015-04-20 19:39:02 +02:00
faller d8a495c357 fix length judgment in MinChunkSizePlugin
combinations.length may become 0 after filter
2015-04-16 15:05:20 +08:00
Tobias Koppers ed75627f06 Merge branch 'master' into webpack-2
Conflicts:
	bin/convert-argv.js
	package.json
2015-04-14 20:09:29 +02:00
Tobias Koppers 026170a8a3 don't deduplicate modules with async blocks
fixes webpack/bundle-loader#15
2015-04-10 10:02:26 +02:00
Tobias Koppers 44cfedd24e Store `recordsPath` paths relative to `options.context`
deduplicated modules can be stored in records

fixes #295
2015-04-04 02:09:49 +02:00
Tobias Koppers 92f53176a2 use sourceAndMap is available 2015-04-03 12:38:56 +02:00
Tobias Koppers f7445f6a2d Merge pull request #897 from sebastienbarre/seb/650
First stab at SourceMapDevToolPlugin exclude option
2015-03-28 17:39:46 +01:00
Håvard Lindset deb1135d2e check hasOwnProperty when looping over modules 2015-03-25 14:48:36 +01:00
Sebastien Barre 9cbce108f1 Factorize code with UglifyJSPlugin 2015-03-20 14:00:39 -04:00
Tobias Koppers a2af69056a Remove old stuff 2015-03-05 21:48:16 +01:00
Antti Ahti 5d107999d5 Show error messages from UglifyJs
Print out err.msg if it's available. Previously these error messages were ignored and it printed unhelpful "undefined"
2015-02-21 11:29:53 +02:00
Tobias Koppers 13b60359f4 DedupePlugin correctly inserts deduplication code
fixed #770
2015-02-09 08:43:46 +01:00
Tobias Koppers b0a3b2a326 added note 2015-02-04 23:22:29 +01:00
Tobias Koppers feb7c7cc49 arguments bug fix 2015-01-18 00:50:05 +01:00
Tobias Koppers 544c368ea1 added support for an async commons chunk, tests and examples 2015-01-11 23:15:11 +01:00
Tobias Koppers 153f937cc8 allow `null` for `selectedChunks` 2015-01-09 19:18:20 +01:00
Tobias Koppers 908c05c07a apply initial and entry correctly with commons chunk
fixes #642
2014-12-28 01:02:36 +01:00
Tobias Koppers 779dbd4930 more features for the CommonsChunkPlugin
* allow to select non-entry chunks
* allow to select multiple/all commons chunks
2014-12-22 12:33:11 +01:00
Tobias Koppers 6779ddb076 allow to disable SourceMap in UglifyJsPlugin 2014-10-31 12:46:18 +01:00
berni 836aac7b51 use test, include and exclude options as suggested by @sokra 2014-10-30 11:29:33 +01:00
berni 15448f16e9 add ability to skip files via user-defined function 2014-10-29 23:35:24 +01:00
Tobias Koppers 8bbc81f635 typo 2014-10-10 09:10:06 +02:00
Tobias Koppers 2d3b2dc4f7 uglify .js with query string
fixes webpack/react-starter#9
2014-10-10 07:35:00 +02:00
Tobias Koppers a2cc7dbd38 apply optimizing on extracted chunks too 2014-09-23 08:42:54 +02:00
Tobias Koppers e489cce1af fixes webpack/extract-text-webpack-plugin#15 2014-09-15 13:33:13 +02:00
Tobias Koppers e0f975eb9e fixes webpack/extract-text-webpack-plugin#14 2014-09-07 22:54:38 +02:00
Tobias Koppers 3597cdb149 Stack trace for critical UglifyJs errors 2014-07-26 13:59:30 +02:00
Tobias Koppers 15045d2879 minCount default should not be 1 or lower
fixes #368
2014-07-24 12:47:18 +02:00
Tobias Koppers e2f83e195d add more complex css-bundle examples
add rebuild module
add chunkName parameter to CommonsChunkPlugin
fix bug in LimitChunkCountPlugin
2014-07-19 14:32:48 +02:00
Michael "Z" Goddard 028444d185 Deref dedupe template module when module fn is called. 2014-07-16 15:26:21 -04:00
Tobias Koppers d80cdcefac Code Quality 2014-06-24 18:53:32 +02:00
Tobias Koppers 42c82f6b77 refactored ModuleTemplate to plugin interface 2014-06-03 08:45:26 +02:00
Tobias Koppers 3247725ba3 refactored MainTemplate to plugin interface 2014-06-02 21:23:53 +02:00
syranide 3f20c27302 Support any UglifyJS OutputStream option {output: {...}} 2014-05-13 23:13:25 +02:00
Tobias Koppers 48aad3eeee fixed #179 typo in OccurenceOrderPlugin 2014-02-25 08:51:40 +01:00
Tobias Koppers 3acab7c27d fixed bug where duplicates are not detected 2014-02-15 11:29:15 +01:00
Tobias Koppers 8229f59adf allow initial chunks to have other ids than 0 2014-02-11 13:27:41 +01:00
Tobias Koppers d6f9b7527f added AggressiveMergingPlugin and example
fixes #162
2014-02-05 12:05:09 +01:00
Tobias Koppers d3a9712193 bug fixing 2014-02-03 18:12:19 +01:00
Tobias Koppers b92af72712 fixed #158 2014-01-31 13:12:51 +01:00
Tobias Koppers 7e8b2c6972 fixed empty commons chunk 2013-12-19 11:46:45 +01:00
Tobias Koppers 3170b76b22 webpack 1.0 beta
moved many options to plugins
#113
2013-12-17 23:21:49 +01:00
Tobias Koppers a395c07c5d report better errors for uglify-js 2013-12-17 00:53:22 +01:00
Tobias Koppers d8dbc5e602 less code 2013-12-13 09:47:18 +01:00
Tobias Koppers 1fa9169cf2 use initial flag for initial loaded chunks 2013-12-03 23:11:14 +01:00
Tobias Koppers bc016f4517 fix nested commons chunks 2013-12-03 19:09:42 +01:00
Tobias Koppers 63e0d4668c Allow to address a commons chunks 2013-12-03 17:14:28 +01:00
Tobias Koppers 8e3d00e77c better default value 2013-12-03 11:44:46 +01:00
Tobias Koppers f165e8e2f1 fixed bug when using an array of entry points in commons chunk plugin 2013-12-03 11:34:38 +01:00
Tobias Koppers 20e9f65bb1 accept an array of entryPoints for Commons chunk 2013-12-03 11:28:39 +01:00
Tobias Koppers 153be562db keep commons chunk in mind when optimizing 2013-12-03 11:28:00 +01:00
Tobias Koppers 6c6e495ae7 better commons naming #128 2013-12-03 11:19:30 +01:00
Tobias Koppers 4d25d521f6 plugin to extract common modules
from multiple entry points
#128
2013-12-03 09:27:15 +01:00
Tobias Koppers 6a0b9f0d9c fixes this in deduped modules 2013-11-27 13:37:47 +01:00
Tobias Koppers c9331d93d3 fixed location info for minimizing 2013-10-31 00:06:39 +01:00
Tobias Koppers 672fc9ba0f UglifyJsPlugin: don't drop warnings
warnings are mapped by source map to modules
2013-09-14 11:50:39 +02:00
Tobias Koppers 6045abca76 allow to disable mangling 2013-07-11 00:16:07 +02:00
Tobias Koppers b5b672233f Fixed caching 2013-07-04 11:55:37 +02:00
Tobias Koppers 49506c83bb HOT: added update json info file, fixed infinite hash updates, #26 2013-07-01 13:59:02 +02:00
Tobias Koppers 327a990070 fixed bugs 2013-06-19 11:53:03 +02:00
Tobias Koppers a84a0433c9 better optimizing 2013-06-17 18:55:11 +02:00
Tobias Koppers 47ae6dc211 only add deduplicate code if deduplicated modules are in the chunk. 2013-06-14 15:42:40 +02:00
Tobias Koppers a91cff49b6 complexer dedupe example and fixed bugs 2013-06-14 15:13:44 +02:00
Tobias Koppers fcc0c5f6cf minor fix 2013-06-13 13:37:08 +02:00
Tobias Koppers c30f16f439 added experimental deduplication support #47 2013-06-12 16:16:06 +02:00
Tobias Koppers 72f29bf81c move minimize option to plugin 2013-05-12 22:44:10 +02:00
Tobias Koppers 5cdb8cbf81 cache chunks, cache assets 2013-05-08 13:28:54 +02:00
Tobias Koppers 8d0162c7bb small change in webpack-core 2013-03-28 08:42:53 +01:00
Tobias Koppers 0de7c73ad8 SourceMap support 2013-03-26 16:54:41 +01:00
Tobias Koppers bcd7924ec6 fixed crashing when error in entry file 2013-03-14 14:51:29 +01:00
Tobias Koppers 9fe83b3dc8 improved chunk loading
now a chunk is not loaded if all included modules are already loaded (by other chunks)
2013-02-24 02:05:55 +01:00
Tobias Koppers 4d1ca1993d fixed stack overflow bug 2013-02-11 12:03:33 +01:00
Tobias Koppers a7cdb88346 minor fixes 2013-02-11 11:29:05 +01:00
Tobias Koppers 0eec4071e9 better optimize 2013-02-11 10:58:24 +01:00
Tobias Koppers 0df61621ea added MinChunkSizePlugin 2013-02-11 10:52:19 +01:00
Tobias Koppers 8ecdb72b48 removed old files, moved stuff 2013-02-01 08:42:12 +01:00
Tobias Koppers ee01837d66 Refactored everything for 0.9 2013-01-30 18:49:25 +01:00