@@ -64,17 +64,17 @@ Load .vue files dynamically at runtime from your html/js. No node.js environment
64
64
see [ examples] ( docs/examples.md )
65
65
66
66
67
- ## Try It Online
67
+ ## Try It Online : test_tube :
68
68
69
69
https://codepen.io/franckfreiburger/project/editor/AqPyBr
70
70
71
71
72
- ## Public API
72
+ ## Public API : blue_book :
73
73
74
74
** [ loadModule] ( docs/api/README.md#loadmodule ) ** (` path ` : string, ` options ` : [ Options] ( docs/api/interfaces/options.md ) ): Promise\< Module>
75
75
76
76
77
- ## dist/
77
+ ## dist/ : package :
78
78
79
79
[ ![ latest bundle version] ( https://img.shields.io/npm/v/vue3-sfc-loader?label=version )] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/main/CHANGELOG.md )
80
80
[ ![ bundle minified size] ( https://img.shields.io/bundlephobia/min/vue3-sfc-loader?label=min )] ( #dist )
@@ -90,20 +90,20 @@ Load .vue files dynamically at runtime from your html/js. No node.js environment
90
90
- ` npm install vue3-sfc-loader ` (here: ` ./node_modules/vue3-sfc-loader/dist/vue3-sfc-loader.js ` )
91
91
92
92
93
- ## Build your own version
93
+ ## Build your own version : hammer_and_wrench :
94
94
95
95
` webpack --config ./build/webpack.config.js --mode=production --env targetsBrowsers="> 1%, last 2 versions, Firefox ESR, not dead, not ie 11" `
96
96
97
97
_ see [ ` package.json ` ] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/main/package.json ) "build" script_
98
98
_ see [ browserslist queries] ( https://github.com/browserslist/browserslist#queries ) _
99
99
100
100
101
- ## How It Works
101
+ ## How It Works : gear :
102
102
103
103
[ ` vue3-sfc-loader.js ` ] ( https://unpkg.com/[email protected] /dist/report.html ) =
` Webpack ` (
` @vue/compiler-sfc ` +
` @babel ` )
104
104
105
105
106
- ### more details
106
+ ### more details : mag :
107
107
108
108
1 . load the ` .vue ` file
109
109
1 . parse and compile template, script and style sections (` @vue/compiler-sfc ` )
@@ -113,15 +113,15 @@ Load .vue files dynamically at runtime from your html/js. No node.js environment
113
113
1 . merge all and return the component
114
114
115
115
116
- ## Any Questions ?
116
+ ## Any Questions : question :
117
117
118
118
<!-- ask here: https://stackoverflow.com/questions/ask?tags=vue3-sfc-loader (see [previous questions](https://stackoverflow.com/questions/tagged/vue3-sfc-loader)) -->
119
- ask here: https://github.com/FranckFreiburger/vue3-sfc-loader/discussions
119
+ [ : speech_balloon : ask in Discussions tab ] ( https://github.com/FranckFreiburger/vue3-sfc-loader/discussions )
120
120
121
121
122
122
## Previous version (for vue2)
123
123
124
- see [ http-vue-loader] ( https://github.com/FranckFreiburger/http-vue-loader )
124
+ see [ http-vue-loader] ( https://github.com/FranckFreiburger/http-vue-loader ) : zzz :
125
125
126
126
#
127
127
0 commit comments