File tree Expand file tree Collapse file tree 4 files changed +327
-344
lines changed Expand file tree Collapse file tree 4 files changed +327
-344
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export default {
6363
6464 modules : [
6565 'nuxt-custom-elements' ,
66- 'nuxt- i18n'
66+ '@nuxtjs/ i18n'
6767 ]
6868
6969} ;
Original file line number Diff line number Diff line change 1+ import WebpackDynamicPublicPathPlugin from 'webpack-dynamic-public-path' ;
12import pkg from '../../package.json' ;
23
34export default {
@@ -29,9 +30,6 @@ export default {
2930 } ,
3031
3132 customElements : {
32- webpack : {
33- publicPathInject : ( ) => global . customPublicPath
34- } ,
3533 entries : [
3634 {
3735 name : 'Example' ,
@@ -40,7 +38,13 @@ export default {
4038 name : 'CustomElementVueRouter' ,
4139 path : '@/entries/VueRouter'
4240 }
43- ]
41+ ] ,
42+ webpackExtend ( config ) {
43+ config . output . plugins . push ( new WebpackDynamicPublicPathPlugin ( {
44+ externalPublicPath : 'window.cutomPublicPath'
45+ } ) ) ;
46+ return config ;
47+ }
4448 } ,
4549 {
4650 name : 'ExampleShadow' ,
@@ -50,7 +54,13 @@ export default {
5054 name : 'CustomElementVueRouter' ,
5155 path : '@/entries/VueRouter'
5256 }
53- ]
57+ ] ,
58+ webpackExtend ( config ) {
59+ config . output . plugins . push ( new WebpackDynamicPublicPathPlugin ( {
60+ externalPublicPath : 'window.cutomPublicPath'
61+ } ) ) ;
62+ return config ;
63+ }
5464 }
5565 ]
5666 } ,
You can’t perform that action at this time.
0 commit comments