mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-27 00:30:09 +02:00
fix base tag and transpiler path
This commit is contained in:
@@ -11,9 +11,9 @@
|
|||||||
rel="manifest"
|
rel="manifest"
|
||||||
href="<%= htmlWebpackPlugin.files.publicPath %>manifest.json"
|
href="<%= htmlWebpackPlugin.files.publicPath %>manifest.json"
|
||||||
/>
|
/>
|
||||||
|
<% if (cli.env.isProd) { %>
|
||||||
<base href="/create/" />
|
<base href="/create/" />
|
||||||
|
<% } %> <% if (cli.manifest.theme_color) { %>
|
||||||
<% if (cli.manifest.theme_color) { %>
|
|
||||||
<meta name="theme-color" content="<%= cli.manifest.theme_color %>" />
|
<meta name="theme-color" content="<%= cli.manifest.theme_color %>" />
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
|
@@ -512,7 +512,7 @@ export function prettify({ file, content, type }) {
|
|||||||
* Loaded the code comiler based on the mode selected
|
* Loaded the code comiler based on the mode selected
|
||||||
*/
|
*/
|
||||||
export function handleModeRequirements(mode) {
|
export function handleModeRequirements(mode) {
|
||||||
const baseTranspilerPath = '/lib/transpilers';
|
const baseTranspilerPath = 'lib/transpilers';
|
||||||
// Exit if already loaded
|
// Exit if already loaded
|
||||||
var d = deferred();
|
var d = deferred();
|
||||||
if (modes[mode].hasLoaded) {
|
if (modes[mode].hasLoaded) {
|
||||||
|
Reference in New Issue
Block a user