Skip to content

Commit 1af0c19

Browse files
LinusBorgchrisvfritz
authored andcommitted
Replaced all links to web pack.github.io with their counterparts on webpack.js.org (#743)
1 parent d6bf423 commit 1af0c19

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/v2/guide/components.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ Vue.component('async-example', function (resolve, reject) {
10001000
})
10011001
```
10021002

1003-
The factory function receives a `resolve` callback, which should be called when you have retrieved your component definition from the server. You can also call `reject(reason)` to indicate the load has failed. The `setTimeout` here is simply for demonstration; How to retrieve the component is entirely up to you. One recommended approach is to use async components together with [Webpack's code-splitting feature](http://webpack.github.io/docs/code-splitting.html):
1003+
The factory function receives a `resolve` callback, which should be called when you have retrieved your component definition from the server. You can also call `reject(reason)` to indicate the load has failed. The `setTimeout` here is simply for demonstration; How to retrieve the component is entirely up to you. One recommended approach is to use async components together with [Webpack's code-splitting feature](https://webpack.js.org/guides/code-splitting-require/):
10041004

10051005
``` js
10061006
Vue.component('async-webpack-example', function (resolve) {

src/v2/guide/deployment.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ When using a build tool like Webpack or Browserify, the production mode will be
1818

1919
#### Webpack
2020

21-
Use Webpack's [DefinePlugin](http://webpack.github.io/docs/list-of-plugins.html#defineplugin) to indicate a production environment, so that warning blocks can be automatically dropped by UglifyJS during minification. Example config:
21+
Use Webpack's [DefinePlugin](https://webpack.js.org/plugins/define-plugin/) to indicate a production environment, so that warning blocks can be automatically dropped by UglifyJS during minification. Example config:
2222

2323
``` js
2424
var webpack = require('webpack')

src/v2/guide/installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Also available on [jsdelivr](//cdn.jsdelivr.net/vue/{{vue_version}}/vue.js) or [
3737

3838
## NPM
3939

40-
NPM is the recommended installation method when building large scale applications with Vue. It pairs nicely with module bundlers such as [Webpack](http://webpack.github.io/) or [Browserify](http://browserify.org/). Vue also provides accompanying tools for authoring [Single File Components](single-file-components.html).
40+
NPM is the recommended installation method when building large scale applications with Vue. It pairs nicely with module bundlers such as [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/). Vue also provides accompanying tools for authoring [Single File Components](single-file-components.html).
4141

4242
``` bash
4343
# latest stable

src/v2/guide/single-file-components.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Here's a simple example of a file we'll call `Hello.vue`:
2424
Now we get:
2525

2626
- [Complete syntax highlighting](https://github.com/vuejs/awesome-vue#syntax-highlighting)
27-
- [CommonJS modules](https://webpack.github.io/docs/commonjs.html)
27+
- [CommonJS modules](https://webpack.js.org/concepts/modules/#what-is-a-webpack-module)
2828
- [Component-scoped CSS](https://github.com/vuejs/vue-loader/blob/master/docs/en/features/scoped-css.md)
2929

3030
As promised, we can also use preprocessors such as Pug, Babel (with ES2015 modules), and Stylus for cleaner and more feature-rich components.
@@ -60,7 +60,7 @@ With `.vue` components, we're entering the realm of advanced JavaScript applicat
6060

6161
After you've taken a day to dive into these resources, we recommend checking out the [webpack-simple](https://github.com/vuejs-templates/webpack-simple) template. Follow the instructions and you should have a Vue project with `.vue` components, ES2015 and hot-reloading running in no time!
6262

63-
The template uses [Webpack](https://webpack.github.io/), a module bundler that takes a number of "modules" and then bundles them into your final application. To learn more about Webpack itself, [this video](https://www.youtube.com/watch?v=WQue1AN93YU) offers a good intro. Once you get past the basics, you might also want to check out [this advanced Webpack course on Egghead.io](https://egghead.io/courses/using-webpack-for-production-javascript-applications).
63+
The template uses [Webpack](https://webpack.js.org/), a module bundler that takes a number of "modules" and then bundles them into your final application. To learn more about Webpack itself, [this video](https://www.youtube.com/watch?v=WQue1AN93YU) offers a good intro. Once you get past the basics, you might also want to check out [this advanced Webpack course on Egghead.io](https://egghead.io/courses/using-webpack-for-production-javascript-applications).
6464

6565
In Webpack, each module can be transformed by a "loader" before being included in the bundle, and Vue offers the [vue-loader](https://github.com/vuejs/vue-loader) plugin to take care of translating `.vue` single-file components. The [webpack-simple](https://github.com/vuejs-templates/webpack-simple) template has already set up everything for you, but if you'd like to learn more about how `.vue` components work with Webpack, you can read [the docs for vue-loader](https://vue-loader.vuejs.org).
6666

src/v2/guide/ssr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This means if you have content fetched asynchronously on pages where SEO is impo
1818

1919
Users might come to your site from a remote area with slow Internet - or just with a bad cell connection. In these cases, you'll want to minimize the number and size of requests necessary for users to see basic content.
2020

21-
You can use [Webpack's code splitting](https://webpack.github.io/docs/code-splitting.html) to avoid forcing users to download your entire application to view a single page, but it still won't be as performant as downloading a single, pre-rendered HTML file.
21+
You can use [Webpack's code splitting](https://webpack.js.org/guides/code-splitting-require/) to avoid forcing users to download your entire application to view a single page, but it still won't be as performant as downloading a single, pre-rendered HTML file.
2222

2323
### Clients with an Old (or Simply No) JavaScript Engine
2424

0 commit comments

Comments
 (0)