Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vue-loader
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pi-plusplus
fork-from-github
vue-loader
Commits
ecd66a5f
Commit
ecd66a5f
authored
May 04, 2018
by
Evan You
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: use less confusing plugin require
parent
0e5aac72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
README.md
docs/guide/README.md
+2
-2
migrating.md
docs/migrating.md
+1
-1
No files found.
docs/guide/README.md
View file @
ecd66a5f
...
@@ -12,7 +12,7 @@ Vue Loader's configuration is a bit different form other loaders. In addition to
...
@@ -12,7 +12,7 @@ Vue Loader's configuration is a bit different form other loaders. In addition to
```
js
```
js
// webpack.config.js
// webpack.config.js
const
{
VueLoaderPlugin
}
=
require
(
'vue-loader
'
)
const
VueLoaderPlugin
=
require
(
'vue-loader/lib/plugin
'
)
module
.
exports
=
{
module
.
exports
=
{
module
:
{
module
:
{
...
@@ -38,7 +38,7 @@ A more complete example webpack config will look like this:
...
@@ -38,7 +38,7 @@ A more complete example webpack config will look like this:
```
js
```
js
// webpack.config.js
// webpack.config.js
const
path
=
require
(
'path'
)
const
path
=
require
(
'path'
)
const
{
VueLoaderPlugin
}
=
require
(
'vue-loader
'
)
const
VueLoaderPlugin
=
require
(
'vue-loader/lib/plugin
'
)
module
.
exports
=
{
module
.
exports
=
{
mode
:
'development'
,
mode
:
'development'
,
...
...
docs/migrating.md
View file @
ecd66a5f
...
@@ -17,7 +17,7 @@ Vue Loader v15 now requires an accompanying webpack plugin to function properly:
...
@@ -17,7 +17,7 @@ Vue Loader v15 now requires an accompanying webpack plugin to function properly:
```
js
```
js
// webpack.config.js
// webpack.config.js
const
{
VueLoaderPlugin
}
=
require
(
'vue-loader
'
)
const
VueLoaderPlugin
=
require
(
'vue-loader/lib/plugin
'
)
module
.
exports
=
{
module
.
exports
=
{
// ...
// ...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment