File tree Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -20,3 +20,13 @@ const MpvuePlugin = require('webpack-mpvue-asset-plugin')
20
20
```
21
21
22
22
bug 或者交流建议等请反馈到 [ mpvue/issues] ( https://github.com/Meituan-Dianping/mpvue/issues ) 。
23
+
24
+ 本仓库是 fork 自 [ webpack-mpvue-asset-plugin] ( https://github.com/mpvue/webpack-mpvue-asset-plugin ) 修改而来,主要更新到支持 webpack4。
25
+
26
+ bug 或者交流建议等请反馈到 [ mpvue/issues] ( https://github.com/Meituan-Dianping/mpvue/issues ) 。
27
+
28
+ ## 安装
29
+
30
+ ``` bash
31
+ npm install webpack4-mpvue-asset-plugin --save-dev
32
+ ```
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ const getRelativePath = (filePath) => {
10
10
}
11
11
12
12
const emitHandle = ( compilation , callback ) => {
13
- Object . keys ( compilation . entrypoints ) . forEach ( key => {
14
- const { chunks } = compilation . entrypoints [ key ]
13
+ compilation . entrypoints . forEach ( ( { chunks} ) => {
15
14
const entryChunk = chunks . pop ( )
16
15
17
16
entryChunk . files . forEach ( filePath => {
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " webpack -mpvue-asset-plugin" ,
3
- "version" : " 2.0.0 " ,
2
+ "name" : " webpack4 -mpvue-asset-plugin" ,
3
+ "version" : " 2.0.1 " ,
4
4
"main" : " index.js" ,
5
5
"directories" : {
6
6
"lib" : " lib"
7
7
},
8
8
"scripts" : {
9
9
"test" : " echo \" Error: no test specified\" && exit 1"
10
10
},
11
- "author" : " rememberwz <rememberwz@gmail.com> " ,
11
+ "author" : " nopast " ,
12
12
"license" : " MIT" ,
13
13
"devDependencies" : {},
14
14
"repository" : {
15
15
"type" : " git" ,
16
- "url" : " git+ https://github.com/mpvue /webpack-mpvue-asset-plugin.git "
16
+ "url" : " https://github.com/BugKun /webpack-mpvue-asset-plugin/tree/feature/webpack4 "
17
17
},
18
18
"keywords" : [
19
- " mpvue"
19
+ " mpvue" ,
20
+ " webpack4"
20
21
],
21
22
"bugs" : {
22
23
"url" : " https://github.com/mpvue/webpack-mpvue-asset-plugin/issues"
23
24
},
24
- "homepage" : " https://github.com/mpvue /webpack-mpvue-asset-plugin#readme" ,
25
+ "homepage" : " https://github.com/BugKun /webpack-mpvue-asset-plugin/tree/feature/webpack4 #readme" ,
25
26
"description" : " " ,
26
27
"dependencies" : {
27
28
"relative" : " ^3.0.2" ,
You can’t perform that action at this time.
0 commit comments