File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function readManifest () {
13
13
return manifest
14
14
}
15
15
try {
16
- const manifestPath = path . resolve ( __dirname , '../public/build/manifest.json' )
16
+ const manifestPath = path . resolve ( __dirname , '../public/build/.vite/ manifest.json' )
17
17
if ( fs . existsSync ( manifestPath ) ) {
18
18
manifest = JSON . parse ( fs . readFileSync ( manifestPath , 'utf-8' ) )
19
19
return manifest
@@ -81,15 +81,16 @@ function getViteAssets (entryName) {
81
81
function generateTags ( assets ) {
82
82
let cssTags = ''
83
83
let jsTags = ''
84
- const isProduction = process . env . NODE_ENV === 'production'
84
+ // const isProduction = process.env.NODE_ENV === 'production'
85
85
86
86
assets . css . forEach ( href => {
87
87
cssTags += `<link rel="stylesheet" href="${ href } ">\n`
88
88
} )
89
89
90
90
assets . js . forEach ( src => {
91
91
// All scripts in dev mode should be modules
92
- const typeAttr = ! isProduction ? ' type="module"' : ''
92
+ // const typeAttr = !isProduction ? ' type="module"' : ''
93
+ const typeAttr = ' type="module"'
93
94
jsTags += `<script src="${ src } "${ typeAttr } ></script>\n`
94
95
} )
95
96
You can’t perform that action at this time.
0 commit comments