Commit Graph

317 Commits

Author SHA1 Message Date
Kinka Huang 48e17ab308 support arguments input for CLI --plugin
using the parseQuery function of loader-utils, and get arguments for the
plugin in the option --plugin.
for example: `webpack --plugin DefinePlugin?{a:1,b:2}`
2015-08-09 12:18:12 +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 5bbfbae551 Merge branch 'master' into webpack-2
Conflicts:
	package.json
	test/statsCases/chunks/expected.txt
2015-07-25 13:49:14 +02:00
Kamil Szot f19712f1bf Adjust to use of interpret module version 0.6 2015-07-23 12:31:56 +02: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 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
Guillermo Bonvehi 380b0665c1 Added --output-filename to be consistent with naming conventions
--output-pathinfo maps to output.pathinfo, however, output.filename is set
by --output-file instead of --output-filename.
Added the new argument while keeping the old one for compability.
2015-06-29 23:03:46 -03:00
Tobias Koppers 69b5e548d5 use multiStep HMR by default
fixed bug in runtime
2015-06-21 22:22:55 +02:00
Tobias Koppers b2f2643437 Merge pull request #1158 from miniEggRoll/master
fix config extension interpretation for .babel.js
2015-06-15 09:35:22 +02:00
Tobias Koppers ebabcfd893 Merge pull request #1132 from kennyt/fix/MinChunkSize
Fix optimize-min-chunk-size option for CLI
2015-06-15 09:13:34 +02:00
Tobias Koppers 41f56a523a Merge branch 'master' into webpack-2 2015-06-13 17:47:50 +02:00
mrsquid0126@gmail.com d4d012e6bc fix config extension interpret for .babel.js 2015-06-11 14:49:30 +08:00
James Ide d0a5faefe1 Error.stackTrackLimit -> stackTraceLimit
Fixed typo in bin/webpack.js. Should be straightforward.
2015-06-09 00:06:28 -07:00
Tobias Koppers 66df34688e Merge branch 'master' into webpack-2
Conflicts:
	bin/convert-argv.js
	lib/webpack.js
2015-06-07 22:24:03 +02:00
Kenny Tran 5ffffa9d9b Fix optimize-min-chunk-size option for CLI 2015-05-31 20:42:49 -07:00
Tobias Koppers f41b103d07 fixed bug when passing entries over cli 2015-05-28 08:48:16 +02:00
Kenny Tran 7f7b6c516e Make console warnings consistent 2015-05-22 09:12:25 -07:00
Kenny Tran ef4943bff7 Fix typo in convert-argv.js 2015-05-22 09:11:47 -07:00
Tobias Koppers 94ba35cb13 Merge branch 'master' into webpack-2
Conflicts:
	lib/WebpackOptionsApply.js
2015-05-22 00:19:16 +02:00
Tobias Koppers f3b335c5a4 fixed #980 2015-05-21 22:43:34 +02:00
Tobias Koppers 11a578a36b Merge branch 'master' into webpack-2
Conflicts:
	lib/NormalModuleFactory.js
2015-05-16 14:59:50 +02:00
Jan Raasch 340479e85e Pass watchOptions to compiler.watch
Before the cli would ignore the `options.watchOptions Object` of a `wepback.config.js` file.

I suppose this got lost in 89058a2c4a
2015-05-13 17:42:46 +02:00
Tobias Koppers 89058a2c4a Reverted watch option rename:
watch -> doWatch -> watch
watchDelay -> watch -> watchOptions
watchDelay and --watch-delay are decrecated now but functional with message
watch is decrecated now but functional with message
2015-05-12 21:17:35 +02: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 297707d42d added --watch-poll
fixed webpack/watchpack#3
2015-05-10 16:41:55 +02:00
Tobias Koppers 319a8f77d6 support deprecated watchDelay 2015-05-10 14:32:16 +02:00
Tobias Koppers fd4c0042ed use new style of passing watch options 2015-05-10 14:18:12 +02:00
Tobias Koppers a6c49718e7 lint stuff 2015-04-28 23:09:39 +02: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 9a800d5979 fixed buggy PRs for webpack.configs
fixes #956
fixes #964
2015-04-10 10:21:38 +02:00
Adam Krebs 7cc35ce10f More helpful error message if we can't find webpack config file 2015-04-08 13:59:21 -04:00
Adam Krebs 2875e402d7 Automatically pull in webpack.config files written in compile-to-js langs using interpret.extensions 2015-04-08 08:28:47 -04:00
Aleksejs Sinicins a1596fb1dc Use node-interpret to import configuration in various formats. 2015-04-06 15:22:51 +03:00
Tobias Koppers ff4585b108 allow config file to export a function
pass --env to config function
2015-03-05 22:22:22 +01:00
Tobias Koppers b31a8110b3 Throw error when output.filename is missing
#719
2015-03-05 22:21:47 +01:00
Tobias Koppers aa7885b91d removed --optimize-occurrence-order 2015-03-05 22:05:11 +01:00
Tobias Koppers be9adc0a26 removed --output-named-chunk-file 2015-03-05 22:02:48 +01:00
Tobias Koppers 0c8d94fa59 report exit code on Errors
#729
2015-03-05 21:48:29 +01:00
Tobias Koppers a4e3b641bc -d now uses eval-source-map instead of source-map
#729
2015-03-05 21:29:04 +01:00
Tobias Bieniek f41cb3ae9c Use "supports-color" to detect if terminal supports colors
This solution still supports "--colors" and "--no-colors" for overriding the detected ability.
2015-02-09 15:58:35 +01:00
Tobias Koppers 3fc0a7eb77 whitespace 2015-02-04 23:22:30 +01:00
Tobias Koppers 84d4df203d better progress 2015-02-04 23:22:30 +01:00
Michael Matuzak 4dbb32b690 update cli doc link 2014-09-18 11:47:00 -07:00
Tobias Koppers 992231a1c8 added `exclude` option to stats
added `--display-exclude` and `--display-modules`
exclude common package manager folders by default
fixes #473
2014-09-15 11:46:33 +02:00
Jason Anderson f371945a29 Add TemplatedPathPlugin 2014-09-11 15:31:08 +02:00
Tobias Koppers 2576fdaf20 fixes #438 2014-09-03 13:15:35 +02:00
Tobias Koppers 764c139ae1 added `cachedAssets` stats option
fixes webpack/webpack-dev-middleware#17
2014-08-28 11:04:48 +02:00
Tobias Koppers d80cdcefac Code Quality 2014-06-24 18:53:32 +02:00
Tobias Koppers b0caa69ae1 fixed file system purging 2014-06-11 22:52:02 +02:00
Tobias Koppers 44bb43854f Added experimental MultiCompiler
webpack(...) takes an array
support an array in webpack.config.js
2014-06-11 22:26:50 +02:00
Tobias Koppers 80f3c48d99 better code style 2014-06-03 21:03:21 +02:00
Tobias Koppers 6f941ab844 fixed command line spamming 2014-06-03 00:15:54 +02:00
Tobias Koppers 884c0a5349 added --display-cached 2014-05-17 00:00:11 +02:00
Tobias Koppers 11ebc21593 cache is on by default
disable it with cache: false resp. --no-cache
@petehunt
2014-03-21 16:08:35 +01:00
Tobias Koppers 3e9d9811a1 print fatal error details 2014-02-26 09:37:10 +01:00
Tobias Koppers 639a1ec0ac faster exit when error 2014-02-26 09:36:49 +01:00
Tobias Koppers e8976b7c9d report error code when fatal error
fixes #181
2014-02-26 09:36:28 +01:00
Tobias Koppers 6cd42e29fa fixes #173 2014-02-14 22:07:06 +01:00
Tobias Koppers ad02d3c630 sorted out a little bug 2014-02-14 10:07:42 +01:00
Tobias Koppers 13596ba75f allow to hide modules 2014-02-13 17:31:52 +01:00
Tobias Koppers 30f954067c track chunk origin 2014-01-23 15:31:40 +01:00
Tobias Koppers b6a1c40545 show error details 2014-01-21 16:24:17 +01:00
Tobias Koppers a219e23690 fixed links 2014-01-14 09:57:26 +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 cc8bfaa88b better solution for supid node.js stream flushing 2013-12-03 23:03:58 +01:00
Tobias Koppers 42d5c05728 fixed incomplete output 2013-12-03 20:27:06 +01:00
Tobias Koppers b264620be2 updated dependencies 2013-10-15 22:33:11 +02:00
Tobias Koppers f8507717c1 added missing --output-jsonp-function, export multiple properties 2013-10-15 22:00:28 +02:00
Tobias Koppers 5dd2e0bbf8 fixed watch mode 2013-10-14 19:28:35 +02:00
Tobias Koppers ff007b3a27 exit the process without waiting for caches 2013-10-14 14:22:07 +02:00
Tobias Koppers 25515b200a added `--define` #100 2013-09-24 14:48:08 +02:00
Tobias Koppers d85324c9fd profile progress 2013-07-04 11:02:35 +02:00
Tobias Koppers 8b2301056d added hot module replacement, fixes #26 2013-06-19 13:49:57 +02:00
Tobias Koppers c30f16f439 added experimental deduplication support #47 2013-06-12 16:16:06 +02:00
Tobias Koppers f84f000149 records, typo 2013-05-31 12:22:40 +02:00
Tobias Koppers 209f96c543 added option to prefetch modules 2013-05-13 13:34:00 +02:00
Tobias Koppers 30c66003e8 profiling is back 2013-05-08 14:47:13 +02:00
Tobias Koppers 5cdb8cbf81 cache chunks, cache assets 2013-05-08 13:28:54 +02:00
Tobias Koppers 0de7c73ad8 SourceMap support 2013-03-26 16:54:41 +01:00
Tobias Koppers 6c3f51e6d9 updated some small things on the cli 2013-03-19 07:56:44 +01:00
Tobias Koppers 78751149c7 fixes #73 2013-03-11 12:16:10 +01:00
Tobias Koppers 62749031ca fixed mistake 2013-02-27 07:59:58 +01:00
Tobias Koppers ffc2ace8d6 small fix for the executable 2013-02-25 12:58:18 +01:00
Tobias Koppers 1a449cefb6 better config file check, added hook for VariableDeclarators 2013-02-22 17:01:54 +01:00
Tobias Koppers 30c4174915 fixes stats as json 2013-02-19 11:11:43 +01:00
Tobias Koppers 64af867150 added require.js stuff, fixed progress 2013-02-13 21:24:00 +01:00
Tobias Koppers a7cdb88346 minor fixes 2013-02-11 11:29:05 +01:00
Tobias Koppers d75fb7a4a2 fixed problems with booleans 2013-02-04 10:30:49 +01:00
Tobias Koppers 55d1af8109 fix named chunks, added multi entry plugin 2013-01-31 01:44:39 +01:00
Tobias Koppers ee01837d66 Refactored everything for 0.9 2013-01-30 18:49:25 +01:00
Rainer Dreyer 0366444379 Renamed *libary* to *library*
Conflicts:
	test/browsertest/build.js
2012-11-05 20:11:50 +01:00
Tobias Koppers 2eeb4923e1 API: loaderContext.depencency is more relaxed and don't need to be called before reading
API: loader.seperable cannot combined with
 loaderContext.emitFile and loaderContext.emitSubStats
 loaderContext.options.resolve
 loaderContext.options.events
 loaderContext.resolve and .sync
API: added profile option (and --profile)
API: added workers option (and --workers)
API: added closeWorkers option
API: if option workers is used:
 options must be JSON.stringify-able. Except options.resolve and options.events.
 Any error thrown in loader must be an object (i. e. an Error object). Only message, stack and value of toString is passed to main process.
API: The expected Cache object for options.cache has changed.
API: event module is emited after the module is finished.
API: event context is now named context-enum
API: added event context which is emited after the context is finished.
API: event dependency is removed. Use stats.dependencies for this.
API: event loader is removed. Use stats.loaders for this.
API: added stats.contexts as a list of contexts.
API: added stats...modules[..].dependencies for as list of files which affect the module's content.
API: added stats...modules[..].loaders for as list of loaders which affect the module's content.
API: removed stats.modulesPerChunk, it is useless and was deprecated.
API: added stats.chunkNameFiles which export the files for named chunks
API: added stats.startTime, timestamp as number
cmd: more colorful output to indicate caching and timing
API: webpack in watch mode emits the event watch-end if watch mode have to end (i. e. loader changed). You may restart it after clearing require.cache.
API: added loaderContext.loaderType as one of loader, preLoader or postLoader.
API: added loaderContext.currentLoaders as list of all loader of the current type.
API: added loaderContext.loaderIndex as index of current loader in loaderContext.currentLoaders.
API: added loaderContext.loaders, loaderContext.preLoaders and loaderContext.postLoaders.
2012-09-25 16:45:53 +02:00
Tobias Koppers ab357031ba fixed one argument calling and json output 2012-09-18 18:40:48 +02:00
Tobias Koppers 2bf6851c80 removed old stuff, moved loaders to enhanced-require 2012-08-23 14:58:10 +02:00
Tobias Koppers 7a40d0d008 Use local installed webpack version, even if global command used 2012-08-05 21:52:00 +02:00
Tobias Koppers c7d7607053 support loaders as entry module 2012-07-17 13:25:01 +02:00
Tobias Koppers 514ad01e97 Shorten sourceURLs fixes #6 2012-07-11 02:15:39 +02:00
Tobias Koppers 258b0c1951 fixed single option 2012-06-29 20:54:24 +02:00
Tobias Koppers efe1e2f46c added --watch-delay 2012-05-12 17:30:41 +02:00
Tobias Koppers 31158a968d documentation and small bugfixes 2012-05-12 16:43:37 +02:00
Tobias Koppers f81c516066 extracted formatOutput 2012-05-06 19:06:26 +02:00
Tobias Koppers bd4017b05d shorter filenames in output 2012-05-03 00:30:27 +02:00
Tobias Koppers e96c8369bb bugfixes 2012-05-02 14:06:42 +02:00
Tobias Koppers 95e89267f4 added watch mode and --progress 2012-05-01 21:33:59 +02:00
Tobias Koppers c44e5f8dc4 add [hash] function 2012-05-01 17:46:26 +02:00
Tobias Koppers 1d1f3975d0 Fixed webpack output again 2012-04-09 14:44:47 +02:00
Tobias Koppers 556b91e50d Fixed (webpack) output, added link to example webpack 2012-04-08 12:53:54 +02:00
Tobias Koppers e3b94309da module ids are predictable, loaders not optional anymore 2012-04-07 21:36:55 +02:00
Tobias Koppers ebd6488752 better free var filling, node.js test 2012-04-05 14:59:01 +02:00
Tobias Koppers 97ed773cb1 better loader support 2012-04-03 16:26:08 +02:00
Tobias Koppers f5651c8fa8 added alias, added support for http/vm-browserify 2012-03-16 13:59:19 +01:00
Tobias Koppers 4c0f2244c0 fixed output of deps 2012-03-15 00:21:52 +01:00
Tobias Koppers 6d1a7a77d6 nice output 2012-03-15 00:05:29 +01:00
Tobias Koppers 0bc303cbf3 allow require as identifier to convert to require.context(".") 2012-03-14 16:33:46 +01:00
Tobias Koppers 911517f375 formatting, license 2012-03-11 21:50:55 +01:00
Tobias Koppers 2e1460036c Initial commit 2012-03-10 13:11:23 +01:00