diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 97ef8d829..1a123cd92 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,14 +12,14 @@ that include your webpack.config.js and relevant files are more likely to receiv If you have created your own loader/plugin please include it on the relevant documentation pages: -[List of loaders](http://webpack.github.io/docs/list-of-loaders.html) -[List of plugins](http://webpack.github.io/docs/list-of-plugins.html) +[List of loaders](https://webpack.github.io/docs/list-of-loaders.html) +[List of plugins](https://webpack.github.io/docs/list-of-plugins.html) ### Documentation webpack is insanely feature rich and documentation is a huge time sink. We greatly appreciate any time spent fixing typos or clarifying sections in the -documentation. +documentation. ## Submitting Changes @@ -38,4 +38,3 @@ Some things that will increase the chance that your pull request is accepted: * Write tests * Follow the existing coding style * Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) - diff --git a/README.md b/README.md index cc369f68b..1259bd29c 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,20 @@ -[![webpack](http://webpack.github.io/assets/logo.png)](http://webpack.github.io) +[![webpack](https://webpack.github.io/assets/logo.png)](https://webpack.github.io) - -[![NPM version][npm-image]][npm-url] [![Gitter chat][gitter-image]][gitter-url] [![Downloads][downloads-image]][downloads-url] + +[![NPM version][npm-image]][npm-url] [![Gitter chat][gitter-image]][gitter-url] [![Downloads][downloads-image]][downloads-url] [![NPM][nodei-image]][nodei-url] -build -[![Build Status][travis-image]][travis-url] [![Appveyor Status][appveyor-image]][appveyor-url] [![Coverage Status][coveralls-image]][coveralls-url] +build +[![Build Status][travis-image]][travis-url] [![Appveyor Status][appveyor-image]][appveyor-url] [![Coverage Status][coveralls-image]][coveralls-url] -dependencies +dependencies [![Dependency Status][david-image]][david-url] [![devDependency Status][david-dev-image]][david-dev-url] [![peerDependency Status][david-peer-image]][david-peer-url] -donation +donation [![Gittip donate button][gittip-image]][gittip-url] [![Donate to sokra][donate-image]][donate-url] - - - - -[documentation](http://webpack.github.io/docs/?utm_source=github&utm_medium=readme&utm_campaign=top) +[documentation](https://webpack.github.io/docs/?utm_source=github&utm_medium=readme&utm_campaign=top) # Introduction @@ -37,7 +33,7 @@ or packaging just about any resource or asset. # Getting Started -Check out webpack's [documentation](http://webpack.github.io/docs/?utm_source=github&utm_medium=readme&utm_campaign=trdr) for quick Getting Started guide, in-depth usage, +Check out webpack's [documentation](https://webpack.github.io/docs/?utm_source=github&utm_medium=readme&utm_campaign=trdr) for quick Getting Started guide, in-depth usage, tutorials and resources. # Installation @@ -48,7 +44,7 @@ project: global: `npm install webpack -g` Usage -http://webpack.github.io/docs/tutorials/getting-started/ +https://webpack.github.io/docs/tutorials/getting-started/ # Examples @@ -59,7 +55,7 @@ Take a look at the [`examples`](https://github.com/webpack/webpack/tree/master/e ## Plugins webpack has a [rich plugin -interface](http://webpack.github.io/docs/plugins.html). Most of the features +interface](https://webpack.github.io/docs/plugins.html). Most of the features within webpack itself use this plugin interface. This makes webpack very **flexible**. @@ -73,12 +69,12 @@ and incredibly **fast** on incremental compilations. webpack enables use of loaders to preprocess files. This allows you to bundle **any static resource** way beyond JavaScript. You can easily [write your own -loaders](http://webpack.github.io/docs/loaders.html) using node.js. +loaders](https://webpack.github.io/docs/loaders.html) using node.js. Loaders are activated by using `loadername!` prefixes in `require()` statements, or are automatically applied via regex from your webpack configuration. -Please see [Using Loaders](http://webpack.github.io/docs/using-loaders.html) for more information. +Please see [Using Loaders](https://webpack.github.io/docs/using-loaders.html) for more information. **basic** * [`json`](https://github.com/webpack/json-loader): Loads file as JSON @@ -98,7 +94,7 @@ Please see [Using Loaders](http://webpack.github.io/docs/using-loaders.html) for * [`coffee`](https://github.com/webpack/coffee-loader): Loads coffee-script like JavaScript * [`babel`](https://github.com/babel/babel-loader): Turn ES6 code into vanilla ES5 using [Babel](https://github.com/babel/babel). * [`livescript`](https://github.com/appedemic/livescript-loader): Loads LiveScript like JavaScript -* [`sweetjs`](https://github.com/jlongster/sweetjs-loader): Use sweetjs macros. +* [`sweetjs`](https://github.com/jlongster/sweetjs-loader): Use sweetjs macros. * [`traceur`](https://github.com/jupl/traceur-loader): Use future JavaScript features with [Traceur](https://github.com/google/traceur-compiler). * [`typescript`](https://github.com/andreypopp/typescript-loader): Loads TypeScript like JavaScript. @@ -127,7 +123,7 @@ Please see [Using Loaders](http://webpack.github.io/docs/using-loaders.html) for * [`injectable`](https://github.com/jauco/webpack-injectable): Allow to inject dependencies into modules * [`transform`](https://github.com/webpack/transform-loader): Use browserify transforms as loader. -For the full list of loaders, see [list of loaders](http://webpack.github.io/docs/list-of-loaders.html). +For the full list of loaders, see [list of loaders](https://webpack.github.io/docs/list-of-loaders.html). ## Module Format (AMD/CommonJS) @@ -140,7 +136,7 @@ simple expressions. This allows you to **support most existing libraries** out o webpack allows you to split your codebase into multiple chunks. Chunks are loaded asynchronously at runtime. This reduces the initial loading time. -[Code Splitting documentation](http://webpack.github.io/docs/code-splitting.html) +[Code Splitting documentation](https://webpack.github.io/docs/code-splitting.html) ## Optimizations @@ -148,9 +144,9 @@ webpack can do many optimizations to **reduce the output size of your JavaScript** by deduplicating frequently used modules, minifying, and giving you full control of what is loaded initially and what is loaded at runtime through code splitting. It can also can make your code chunks **cache -friendly** by using hashes. +friendly** by using hashes. -[Optimization documentation](http://webpack.github.io/docs/optimization.html) +[Optimization documentation](https://webpack.github.io/docs/optimization.html) webpack optimizes in several ways. It also makes your chunks **cache-friendly** by using hashes. @@ -160,7 +156,7 @@ webpack optimizes in several ways. It also makes your chunks **cache-friendly** // webpack is a module bundler. // This means webpack takes modules with dependencies // and emits static assets representing those modules. - + // Dependencies can be written in CommonJs var commonjs = require("./commonjs"); // or in AMD @@ -178,8 +174,8 @@ define(["amd-module", "../file"], function (amdModule, file) { // of the AMD require. }); }); - - + + require("coffee!./cup.coffee"); // "Loaders" are used to preprocess files. // They can be prefixed in the require call @@ -200,7 +196,7 @@ function loadTemplate (name) { // ...and you can combine everything. function loadTemplateAsync (name, callback) { - require(["bundle?lazy!./templates/" + name + ".jade"], + require(["bundle?lazy!./templates/" + name + ".jade"], function (templateBundle) { templateBundle(callback); }); @@ -209,12 +205,12 @@ function loadTemplateAsync (name, callback) { ## Documentation -[documentation](http://webpack.github.io/docs/?utm_source=github&utm_medium=readme&utm_campaign=documentation) +[documentation](https://webpack.github.io/docs/?utm_source=github&utm_medium=readme&utm_campaign=documentation) ## Changelog -[changelog](http://webpack.github.io/docs/changelog.html) +[changelog](https://webpack.github.io/docs/changelog.html) ## Tests diff --git a/bin/webpack.js b/bin/webpack.js index 02719b647..3f98dc470 100644 --- a/bin/webpack.js +++ b/bin/webpack.js @@ -14,7 +14,7 @@ try { } catch(e) {} var optimist = require("optimist") .usage("webpack " + require("../package.json").version + "\n" + - "Usage: http://webpack.github.io/docs/cli.html"); + "Usage: https://webpack.github.io/docs/cli.html"); require("./config-optimist")(optimist); diff --git a/lib/MovedToPluginWarningPlugin.js b/lib/MovedToPluginWarningPlugin.js index 465fb61e2..dba538b1e 100644 --- a/lib/MovedToPluginWarningPlugin.js +++ b/lib/MovedToPluginWarningPlugin.js @@ -12,6 +12,6 @@ MovedToPluginWarningPlugin.prototype.apply = function(compiler) { var optionName = this.optionName; var pluginName = this.pluginName; compiler.plugin("compilation", function(compilation) { - compilation.warnings.push(new Error("webpack options:\nDEPRECATED option '" + optionName + "' will be moved to the " + pluginName + ". Use this instead.\nFor more info about the usage of the " + pluginName + " see http://webpack.github.io/docs/list-of-plugins.html")); + compilation.warnings.push(new Error("webpack options:\nDEPRECATED option '" + optionName + "' will be moved to the " + pluginName + ". Use this instead.\nFor more info about the usage of the " + pluginName + " see https://webpack.github.io/docs/list-of-plugins.html")); }); }; diff --git a/lib/optimize/AggressiveMergingPlugin.js b/lib/optimize/AggressiveMergingPlugin.js index 8a6a0ba22..68034d202 100644 --- a/lib/optimize/AggressiveMergingPlugin.js +++ b/lib/optimize/AggressiveMergingPlugin.js @@ -4,7 +4,7 @@ */ function AggressiveMergingPlugin(options) { if(options !== undefined && typeof options !== "object" || Array.isArray(options)) { - throw new Error("Argument should be an options object. To use defaults, pass in nothing.\nFor more info on options, see http://webpack.github.io/docs/list-of-plugins.html"); + throw new Error("Argument should be an options object. To use defaults, pass in nothing.\nFor more info on options, see https://webpack.github.io/docs/list-of-plugins.html"); } this.options = options || {}; } diff --git a/lib/optimize/LimitChunkCountPlugin.js b/lib/optimize/LimitChunkCountPlugin.js index 1985b9de9..6cac81947 100644 --- a/lib/optimize/LimitChunkCountPlugin.js +++ b/lib/optimize/LimitChunkCountPlugin.js @@ -4,7 +4,7 @@ */ function LimitChunkCountPlugin(options) { if(options !== undefined && typeof options !== "object" || Array.isArray(options)) { - throw new Error("Argument should be an options object.\nFor more info on options, see http://webpack.github.io/docs/list-of-plugins.html"); + throw new Error("Argument should be an options object.\nFor more info on options, see https://webpack.github.io/docs/list-of-plugins.html"); } this.options = options || {}; } diff --git a/lib/optimize/MinChunkSizePlugin.js b/lib/optimize/MinChunkSizePlugin.js index 406badac9..56bc0c134 100644 --- a/lib/optimize/MinChunkSizePlugin.js +++ b/lib/optimize/MinChunkSizePlugin.js @@ -4,7 +4,7 @@ */ function MinChunkSizePlugin(options) { if(typeof options !== "object" || Array.isArray(options)) { - throw new Error("Argument should be an options object.\nFor more info on options, see http://webpack.github.io/docs/list-of-plugins.html"); + throw new Error("Argument should be an options object.\nFor more info on options, see https://webpack.github.io/docs/list-of-plugins.html"); } this.options = options; } diff --git a/lib/optimize/OccurrenceOrderPlugin.js b/lib/optimize/OccurrenceOrderPlugin.js index 5b1837f22..db15ace5a 100644 --- a/lib/optimize/OccurrenceOrderPlugin.js +++ b/lib/optimize/OccurrenceOrderPlugin.js @@ -4,7 +4,7 @@ */ function OccurrenceOrderPlugin(preferEntry) { if(preferEntry !== undefined && typeof preferEntry !== "boolean") { - throw new Error("Argument should be a boolean.\nFor more info on this plugin, see http://webpack.github.io/docs/list-of-plugins.html"); + throw new Error("Argument should be a boolean.\nFor more info on this plugin, see https://webpack.github.io/docs/list-of-plugins.html"); } this.preferEntry = preferEntry; } diff --git a/package.json b/package.json index a7dd1a648..b64e18fda 100644 --- a/package.json +++ b/package.json @@ -58,9 +58,9 @@ }, "repository": { "type": "git", - "url": "http://github.com/webpack/webpack.git" + "url": "https://github.com/webpack/webpack.git" }, - "homepage": "http://github.com/webpack/webpack", + "homepage": "https://github.com/webpack/webpack", "main": "lib/webpack.js", "web": "lib/webpack.web.js", "bin": "./bin/webpack.js",