File tree 3 files changed +16
-15
lines changed
3 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ module.exports = async function dev (sourceDir, cliOptions = {}) {
8
8
const convert = require ( 'koa-connect' )
9
9
const mount = require ( 'koa-mount' )
10
10
const serveStatic = require ( 'koa-static' )
11
- const HTMLPlugin = require ( 'html-webpack-plugin' )
12
11
const history = require ( 'connect-history-api-fallback' )
13
12
const portfinder = require ( 'portfinder' )
14
13
@@ -55,7 +54,9 @@ module.exports = async function dev (sourceDir, cliOptions = {}) {
55
54
56
55
config
57
56
. plugin ( 'html' )
58
- . use ( HTMLPlugin , [ {
57
+ // using a fork of html-webpack-plugin to avoid it requiring webpack
58
+ // internals from an incompatible version.
59
+ . use ( require ( 'vuepress-html-webpack-plugin' ) , [ {
59
60
template : path . resolve ( __dirname , 'app/index.dev.html' )
60
61
} ] )
61
62
Original file line number Diff line number Diff line change 56
56
"file-loader" : " ^1.1.11" ,
57
57
"fs-extra" : " ^5.0.0" ,
58
58
"globby" : " ^8.0.1" ,
59
- "html-webpack-plugin" : " ^3.2.0" ,
59
+ "vuepress- html-webpack-plugin" : " ^3.2.0" ,
60
60
"koa-connect" : " ^2.0.1" ,
61
61
"koa-mount" : " ^3.0.0" ,
62
62
"koa-static" : " ^4.0.2" ,
Original file line number Diff line number Diff line change @@ -2647,18 +2647,6 @@ html-minifier@^3.2.3:
2647
2647
relateurl "0.2.x"
2648
2648
uglify-js "3.3.x"
2649
2649
2650
- html-webpack-plugin@^3.2.0 :
2651
- version "3.2.0"
2652
- resolved "https://registry.yarnpkg.com/html-webpack-plugin/-/html-webpack-plugin-3.2.0.tgz#b01abbd723acaaa7b37b6af4492ebda03d9dd37b"
2653
- dependencies :
2654
- html-minifier "^3.2.3"
2655
- loader-utils "^0.2.16"
2656
- lodash "^4.17.3"
2657
- pretty-error "^2.0.2"
2658
- tapable "^1.0.0"
2659
- toposort "^1.0.0"
2660
- util.promisify "1.0.0"
2661
-
2662
2650
htmlparser2@^3.8.2 :
2663
2651
version "3.9.2"
2664
2652
resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.9.2.tgz#1bdf87acca0f3f9e53fa4fcceb0f4b4cbb00b338"
@@ -6407,6 +6395,18 @@ vue@^2.5.16:
6407
6395
version "2.5.16"
6408
6396
resolved "https://registry.yarnpkg.com/vue/-/vue-2.5.16.tgz#07edb75e8412aaeed871ebafa99f4672584a0085"
6409
6397
6398
+ vuepress-html-webpack-plugin@^3.2.0 :
6399
+ version "3.2.0"
6400
+ resolved "https://registry.yarnpkg.com/vuepress-html-webpack-plugin/-/vuepress-html-webpack-plugin-3.2.0.tgz#219be272ad510faa8750d2d4e70fd028bfd1c16e"
6401
+ dependencies :
6402
+ html-minifier "^3.2.3"
6403
+ loader-utils "^0.2.16"
6404
+ lodash "^4.17.3"
6405
+ pretty-error "^2.0.2"
6406
+ tapable "^1.0.0"
6407
+ toposort "^1.0.0"
6408
+ util.promisify "1.0.0"
6409
+
6410
6410
w3c-hr-time@^1.0.1 :
6411
6411
version "1.0.1"
6412
6412
resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045"
You can’t perform that action at this time.
0 commit comments