mirror of https://github.com/webpack/webpack.git
				
				
				
			Update README.md of Examples
This commit is contained in:
		
							parent
							
								
									bf4ec9c26e
								
							
						
					
					
						commit
						940fab0ccd
					
				|  | @ -1,67 +1,122 @@ | |||
| # examples | ||||
| # Examples | ||||
| ## Aggressive Merging | ||||
| [aggressive-merging](aggressive-merging)  | ||||
| 
 | ||||
| ## [commonjs](commonjs) | ||||
| ## Chunk | ||||
| [chunkhash](chunkhash) | ||||
| 
 | ||||
| example demonstrating a very simple program | ||||
| [common-chunk-and-vendor-chunk](common-chunk-and-vendor-chunk) | ||||
| 
 | ||||
| ## [code-splitting](code-splitting) | ||||
| [explicit-vendor-chunk](explicit-vendor-chunk) | ||||
| 
 | ||||
| example demonstrating a very simple case of Code Splitting. | ||||
| [extra-async-chunk-advanced](extra-async-chunk-advanced) | ||||
| 
 | ||||
| ## [require.resolve](require.resolve) | ||||
| [extra-async-chunk](extra-async-chunk) | ||||
| 
 | ||||
| example demonstrating how to cache clearing of modules with `require.resolve` and `require.cache`. | ||||
| [code-splitting-specify-chunk-name](code-splitting-specify-chunk-name) | ||||
| 
 | ||||
| ## [require.context](require.context) | ||||
| [move-to-parent](move-to-parent) | ||||
| 
 | ||||
| example demonstrating automatic creation of contexts when using variables in `require`. | ||||
| [multiple-commons-chunks](multiple-commons-chunks) | ||||
| 
 | ||||
| ## [code-splitted-require.context](code-splitted-require.context) | ||||
| [multiple-entry-points-commons-chunk-css-bundle](multiple-entry-points-commons-chunk-css-bundle) | ||||
| 
 | ||||
| example demonstrating contexts in a code-split environment. | ||||
| [names-chunks](names-chunks) example demonstrating merging of chunks with named chunks | ||||
| 
 | ||||
| ## [code-splitted-require.context-amd](code-splitted-require.context-amd) | ||||
| [two-explicit-vendor-chunks](two-explicit-vendor-chunks) | ||||
| 
 | ||||
| example demonstrating contexts in a code-split environment with AMD. | ||||
| ## Code Splitted | ||||
| [code-splitted-css-bundle](code-splitted-css-bundle) | ||||
| 
 | ||||
| ## [loader](loader) | ||||
| [code-splitted-require.context-amd](code-splitted-require.context-amd) example demonstrating contexts in a code-split environment with AMD. | ||||
| 
 | ||||
| example demonstrating the usage of loaders. | ||||
| [code-splitted-require.context](code-splitted-require.context) example demonstrating contexts in a code-split environment. | ||||
| 
 | ||||
| ## [coffee-script](coffee-script) | ||||
| ## Code Splitting | ||||
| [code-splitting](code-splitting) example demonstrating a very simple case of Code Splitting. | ||||
| 
 | ||||
| example demonstrating code written in coffee-script. | ||||
| [code-splitting-bundle-loader](code-splitting-bundle-loader) example demonstrating Code Splitting through the builder loader | ||||
| 
 | ||||
| ## [code-splitting-bundle-loader](code-splitting-bundle-loader) | ||||
| [code-splitting-harmony](code-splitting-harmony)  | ||||
| 
 | ||||
| example demonstrating Code Splitting through the builder loader | ||||
| [code-splitting-native-import-context](code-splitting-native-import-context)  | ||||
| 
 | ||||
| ## [names-chunks](names-chunks) | ||||
| [code-splitting-specify-chunk-name](code-splitting-specify-chunk-name) | ||||
| 
 | ||||
| example demonstrating merging of chunks with named chunks | ||||
| ## Coffee Script | ||||
| [coffee-script](coffee-script) example demonstrating code written in coffee-script. | ||||
| 
 | ||||
| ## [mixed](mixed) | ||||
| ## CommonJS | ||||
| [commonjs](commonjs) example demonstrating a very simple program | ||||
| 
 | ||||
| example demonstrating mixing CommonJs and AMD | ||||
| ## Css Bundle | ||||
| [css-bundle](css-bundle) | ||||
| 
 | ||||
| ## [web-worker](web-worker) | ||||
| [multiple-entry-points-commons-chunk-css-bundle](multiple-entry-points-commons-chunk-css-bundle) | ||||
| 
 | ||||
| example demonstrating creating WebWorkers with webpack and the worker-loader. | ||||
| ## DLL | ||||
| [dll](dll) | ||||
| 
 | ||||
| ## [i18n](i18n) | ||||
| [dll-user](dll-user) | ||||
| 
 | ||||
| example demonstrating localization. | ||||
| ## Externals | ||||
| [externals](externals) | ||||
| 
 | ||||
| ## [multiple-entry-points](multiple-entry-points) | ||||
| ## Harmony | ||||
| [harmony](harmony) | ||||
| 
 | ||||
| [code-splitting-harmony](code-splitting-harmony) | ||||
| 
 | ||||
| [harmony-interop](harmony-interop) | ||||
| 
 | ||||
| [harmony-library](harmony-library) | ||||
| 
 | ||||
| [harmony-unused](harmony-unused) | ||||
| 
 | ||||
| ## HTT2 Aggressive Splitting | ||||
| [http2-aggressive-splitting](http2-aggressive-splitting) | ||||
| 
 | ||||
| ## Hybrid Routing | ||||
| [hybrid-routing](hybrid-routing) | ||||
| 
 | ||||
| ## i18n | ||||
| [i18n](i18n) example demonstrating localization. | ||||
| 
 | ||||
| ## Loader | ||||
| [loader](loader) example demonstrating the usage of loaders. | ||||
| 
 | ||||
| ## Mixed | ||||
| [mixed](mixed) example demonstrating mixing CommonJs and AMD | ||||
| 
 | ||||
| ## Multi Compiler | ||||
| [multi-compiler](multi-compiler) | ||||
| 
 | ||||
| ## Multi Part Library | ||||
| [multi-part-library](multi-part-library) | ||||
| 
 | ||||
| ## Multiple Entry Points | ||||
| [multiple-entry-points](multiple-entry-points) example demonstrating multiple entry points with Code Splitting. | ||||
| 
 | ||||
| ## Require Context | ||||
| [require.context](require.context) example demonstrating automatic creation of contexts when using variables in `require`. | ||||
| 
 | ||||
| ## Require Resolve | ||||
| [require.resolve](require.resolve) example demonstrating how to cache clearing of modules with `require.resolve` and `require.cache`. | ||||
| 
 | ||||
| ## Scope Hoisting | ||||
| [scope-hoisting](scope-hoisting) | ||||
| 
 | ||||
| ## Source Map | ||||
| [source-map](source-map) | ||||
| 
 | ||||
| ## Web Worker | ||||
| [web-worker](web-worker) example demonstrating creating WebWorkers with webpack and the worker-loader. | ||||
| 
 | ||||
| example demonstrating multiple entry points with Code Splitting. | ||||
| 
 | ||||
| # Requests | ||||
| 
 | ||||
| If you think an example is missing, please report it as issue. :) | ||||
| 
 | ||||
| # Building an Example | ||||
| 
 | ||||
| 1. Run `npm install` in the root of the project. | ||||
| 2. Run `npm link webpack` in the root of the project. | ||||
| 3. Run `node build.js` in the specific example directory. (Ex: `cd examples/commonjs && node build.js`) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue