File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -33,20 +33,18 @@ module.exports = (api, projectOptions) => {
33
33
. add ( resolve ( './dist/homepage.js' ) )
34
34
. end ( ) ;
35
35
// add navigator entry html
36
- config
37
- . plugin ( PLUGIN_NAME )
38
- . use ( require ( resolve ( 'node_modules/html-webpack-plugin' ) ) , [
39
- {
40
- meta : {
41
- navigator : navigatorData
42
- } ,
43
- filename : `${ PLUGIN_NAME } .html` ,
44
- favicon : resolve ( './public/favicon.ico' ) ,
45
- title : 'welcome to navigator center' ,
46
- template : resolve ( './public/index.html' ) ,
47
- chunks : [ PLUGIN_NAME ]
48
- }
49
- ] ) ;
36
+ config . plugin ( PLUGIN_NAME ) . use ( require ( 'html-webpack-plugin' ) , [
37
+ {
38
+ meta : {
39
+ navigator : navigatorData
40
+ } ,
41
+ filename : `${ PLUGIN_NAME } .html` ,
42
+ favicon : resolve ( './public/favicon.ico' ) ,
43
+ title : 'welcome to navigator center' ,
44
+ template : resolve ( './public/index.html' ) ,
45
+ chunks : [ PLUGIN_NAME ]
46
+ }
47
+ ] ) ;
50
48
// refer the index page to plugin index
51
49
config . devServer . set ( 'index' , `${ PLUGIN_NAME } .html` ) ;
52
50
// default open plugin index when user config devServer.open = true
You can’t perform that action at this time.
0 commit comments