@moneko/core 3.17.13 → 3.17.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{merge as e}from"webpack-merge";import{CONFIG as t}from"../config.mjs";import{PACKAGENAME as i,coreName as o}from"../process-env.mjs";import{resolveProgram as r}from"../utils/index.mjs";import{description as n,keywords as a}from"../vm/info.mjs";let{favicon:l=`node_modules/${o}/lib/options/favicon.ico`,template:m
|
|
1
|
+
import{merge as e}from"webpack-merge";import{CONFIG as t}from"../config.mjs";import{PACKAGENAME as i,coreName as o}from"../process-env.mjs";import{resolveProgram as r}from"../utils/index.mjs";import{description as n,keywords as a}from"../vm/info.mjs";let{favicon:l=`node_modules/${o}/lib/options/favicon.ico`,template:p,...m}=t.htmlPluginOption||{},s=t.seo&&`https://${t.seo.domain}${t.basename}`,d={charset:"UTF-8","X-UA-Compatible":{"http-equiv":"X-UA-Compatible",content:"IE=edge,Chrome=1"},HandheldFriendly:"true",MobileOptimized:"320","screen-orientation":"portrait","x5-orientation":"portrait",browsermode:"application","x5-page-mode":"app","msapplication-tap-highlight":"no","apple-mobile-web-app-capable":"yes",renderer:"webkit",description:n,keywords:a,"http-equiv":"refresh",viewport:"width=device-width, initial-scale=1"};s&&Object.assign(d,{relCanonical:{rel:"canonical",href:s}});let c=e({title:t.env?.PROJECTNAME||i.toLocaleUpperCase()||"Title",filename:"index.html",hash:!1,minify:{minifyJS:!0,minifyCSS:!0,collapseWhitespace:!0,removeComments:!0,removeRedundantAttributes:!1,removeScriptTypeAttributes:!1,removeStyleLinkTypeAttributes:!1,removeAttributeQuotes:!0,useShortDoctype:!0},meta:d,tags:[],favicon:l?r(l):l},m,p?{template:p?r(p):void 0}:{templateContent:function({htmlWebpackPlugin:{options:e}}){let t=e.tags,i="",o="";return t&&t.map(function(e){let{tag:t="script",textContent:r="",inject:n="head",...a}=e,l="";for(let e in a)Object.prototype.hasOwnProperty.call(a,e)&&(l+=`${e}="${a[e]}" `);let p=`<${t} ${l}>${r}</${t}>`;"body"===n?o+=p:i+=p}),`<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<title>${e.title}</title>
|
|
@@ -8,4 +8,4 @@ import{merge as e}from"webpack-merge";import{CONFIG as t}from"../config.mjs";imp
|
|
|
8
8
|
<div id="root"></div>
|
|
9
9
|
${o}
|
|
10
10
|
</body>
|
|
11
|
-
</html>`}});export default
|
|
11
|
+
</html>`}});export default c;
|