Commit Graph

913 Commits

Author SHA1 Message Date
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
Tim Sebastian 6b1872cb0d make the test the other way around 2017-02-09 22:09:09 +11:00
Tim Sebastian 5b96f00279 add stats test for the warnings filter in the uglifyjsplugin 2017-02-09 22:07:59 +11:00
Tim Sebastian 8ecae31c67 clean up schema check output by adding absolutePath explicitly to WebpackOptionsValidationError 2017-02-08 22:54:55 +11:00
Tobias Koppers 33b8328339 replaced unit test with integration test 2017-02-08 09:50:27 +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
Tobias Koppers 0de9fec841 Merge pull request #4188 from webpack/bugfix/issue-4179
fixes #4179
2017-02-08 09:39:31 +01:00
Tobias Koppers bc867632e5 removed not needed nesting 2017-02-08 09:03:47 +01:00
Tim Sebastian 4d186ee764 add test for reverse-sort 2017-02-07 21:27:41 +11:00
Tobias Koppers 1b7ae17ad1 Merge pull request #4219 from webpack/test/move-to-parent
updated move to parent example and add test case
2017-02-07 09:44:39 +01:00
Tobias Koppers e8b3170e29 fixes #4179 2017-02-06 13:51:00 +01:00
Tim Sebastian 99b8af4dfd add regression test to prevent endless evaluation loops in define plugin 2017-02-06 22:44:39 +11:00
Tobias Koppers c49bfdf921 updated move to parent example and add test case 2017-02-06 11:17:08 +01:00
Federico Bertolini 0787748c54 EnvironmentPlugin: test constructor passing an array and an object with default values 2017-02-04 15:48:48 +01:00
Tim Sebastian d24da7574c add two test cases 2017-02-05 01:37:21 +11:00
Federico Bertolini d4b21513f8 EnvironmentPlugin tests: refactored the regular expressions of the expected errors to allow adding more tests easily 2017-02-04 15:29:58 +01:00
Tim Sebastian 7d0a442183 add two tests for non-absolute and absolute paths check 2017-02-04 00:49:38 +11:00
Tobias Koppers b7d0155f4e Merge pull request #4041 from shubheksha/refactor-test-Parser
refactor(ES6): Parser.test.js
2017-02-03 14:44:13 +01:00
Tobias Koppers c9bef6b965 Merge pull request #4054 from shubheksha/refactor-test-WatchTestCases
refactor(ES6): WatchTestCases.test.js
2017-02-03 14:25:05 +01:00
Tobias Koppers 0b92eb0508 Merge pull request #4053 from shubheksha/refactor-test-WatchDetection
refactor(ES6): WatchDetection.test.js
2017-02-03 14:23:53 +01:00
Tobias Koppers 105d970008 Merge pull request #4052 from shubheksha/refactor-test-WarnCaseSensitiveModulesPlugin
refactor(ES6): WarnCaseSensitiveModulesPlugin.test.js
2017-02-03 14:23:04 +01:00