Commit Graph

933 Commits

Author SHA1 Message Date
Tobias Koppers 3d12e55f26 updated stats because of external change 2017-02-23 23:08:34 +01:00
Tobias Koppers e618bdc6c8 Merge pull request #4310 from timse/cleanup-commons-chunk-plugin
Cleanup commons chunk plugin
2017-02-22 22:54:50 +01:00
Tobias Koppers 57825153e5 Merge pull request #4305 from rrharvey/feature/multi-entry-cli
allow mutli-file entry via CLI
2017-02-22 15:03:52 +01:00
Tobias Koppers 479a0a4b7b Merge pull request #4189 from webpack/feature/child-plugins
child compiler features
2017-02-22 15:01:08 +01:00
Tobias Koppers 05181151bf Merge pull request #4307 from timse/refactor-externalmodule-to-es6
Refactor externalmodule to es6
2017-02-22 15:00:36 +01:00
Tim Sebastian 35e3c8495d add test cases for min-size 2017-02-22 23:02:17 +11:00
Will Mendes 929a4d057e refactor(HarmonyModulesHelpers): upgrade to ES6 2017-02-22 22:33:56 +11:00
Tobias Koppers fbf84d51f2 allow to apply plugins to child compiler
allow to match on compiler name in rules

#4177
2017-02-22 11:49:49 +01:00
Jer 0f45242a85 Merge branch 'master' of github.com:webpack/webpack into test-contextreplacementplugin 2017-02-20 14:39:59 -06:00
Jer 25ef1f882f fix paths for windows 2017-02-20 13:42:30 -06:00
Ryan Harvey 14a9dee1f0 allow mutli-file entry via CLI 2017-02-20 13:33:20 -06:00
Jer e73acf5403 liniting 2017-02-20 13:31:59 -06:00
Jer df119967cf added a better description 2017-02-20 13:16:30 -06:00
Jer 405a4aef27 add test to contextreplacemntplugin 2017-02-20 13:14:49 -06:00
Tim Sebastian db5a9e4068 fix tests 2017-02-20 20:29:32 +11:00
Tim Sebastian 1c7f992bd7 fix formatting in AmdMainTemplatePlugin.test 2017-02-20 20:29:32 +11:00
Tim Sebastian 9a1df0277e more tests for external modules 2017-02-19 13:44:42 +11:00
Tim Sebastian b363611750 add more unit tests for external modules 2017-02-19 12:11:08 +11:00
Tim Sebastian 40c982910f remove superfluous semi colon from WebpackMissingModule#moduleCode 2017-02-19 11:56:47 +11:00
Tim Sebastian 7421d47284 add unit tests for ExternalModule 2017-02-19 11:55:07 +11:00
Sergio Rojas 724749c63d refactor(ES6): ModuleDependencyError.test.js 2017-02-17 13:00:47 -08:00
Sergio Rojas 1b8cfaba73 refactor(ES6): ModuleDependencyError.test.js 2017-02-17 12:05:12 -08:00
Sergio Rojas e152999e5a refactor(ES6): NullDependency.test.js 2017-02-17 10:39:13 -08:00
Sergio Rojas a465d93f84 refactor(ES6):NullDependency.test.js 2017-02-17 10:02:19 -08:00
Tobias Koppers 27deabcefe Merge pull request #4259 from timse/refactor-normalmodule-to-es6
Refactor NormalModule to es6
2017-02-16 11:03:29 +01:00
Tobias Koppers 3edf64534b Merge pull request #4273 from webpack/test/dep-and-etp
updated api for extract-text-webpack-plugin
2017-02-16 10:59:32 +01:00
Tim Sebastian db2626595c fix test and linting 2017-02-16 19:31:58 +11:00
Tim Sebastian c06b0665d2 apply review tasks 2017-02-16 08:01:09 +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
Tobias Koppers f91cb927be Merge pull request #4075 from webpack/feature/optimize_parse_for_each_to_loop
feat(parser) optimize parse for each to loop
2017-02-15 15:02:28 +01:00
Tobias Koppers 8f9b4721eb replace loader with use for the ETP 2017-02-15 14:38:19 +01:00
Tobias Koppers 6542e42078 Merge pull request #4112 from timse/cleanup-chunk
Cleanup chunk
2017-02-15 12:41:37 +01:00
Tim Sebastian b2b7021582 skip the windows path test for now 2017-02-14 22:55:55 +11:00
Tim Sebastian a7bbe58376 fix style issues 2017-02-14 21:47:55 +11:00
Tim Sebastian f418e4d5ae add tests for newly added methods 2017-02-14 21:28:32 +11:00
Tim Sebastian 3812c101b1 add tests for preventParsing and applyNoParseRule 2017-02-14 21:14:57 +11:00
Tim Sebastian eb2d6d6d5f add tests for NormalModule 2017-02-14 20:38:47 +11:00
Tobias Koppers 5a135a7264 updated api for extract-text-webpack-plugin 2017-02-13 12:33:49 +01:00
Tobias Koppers 89bc16c5d3 Merge pull request #4055 from shubheksha/refactor-test-WebEnvironmentPlugin
refactor(ES6): WebEnvironmentPlugin.test.js
2017-02-13 09:21:26 +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 3ee35f6a0e Merge pull request #4015 from shubheksha/refactor-test-Examples
refactor(ES6): Examples.test.js
2017-02-09 23:39:07 +01:00
Tobias Koppers 2932a5aa00 Merge pull request #4051 from shubheksha/refactor-test-Validation
refactor(ES6): Validation.test.js
2017-02-09 23:36:21 +01:00
Tobias Koppers 167e7f095e add use strict 2017-02-09 23:35:55 +01:00
Tobias Koppers d66fb0d3e5 Merge pull request #4149 from timse/fail-early-on-non-absolute-context
fail if the given context is not absolute
2017-02-09 22:49:47 +01:00
Tim Sebastian b32054d4c0 rename `non-absolut` to `relative` 2017-02-10 07:47:46 +11: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
Tim Sebastian 6d875d0d0b resolve files "linux style" in compiler caching test 2017-02-09 23:25:45 +11:00
Tim Sebastian 842b6ccc0e remove trailing whitespace 2017-02-09 22:57:09 +11:00
Tobias Koppers fcb219d968 change output filesystem to be in memory and linux style 2017-02-09 12:28:26 +01:00